mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #1397] Users added with createsuperuser have "isolated" identity list #1108
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jakicoll on GitHub (Feb 15, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1397
Impacted versions
Steps to reproduce
Enter the virtual enviroment and
Current behavior
As I login with this user, dashboard shows 1 domain and 12 identities (which is correct).
However, when I go to "List identities", only the user modboa is shown (which was created by
createsuperuseror the installer - I don't exactly remember that).By creating another superuser now via the webinterface "Add identity" and logging in with that new user, I can see all identities, except the two created with the
createsuperuser-function.This is an excerpt of my sql table core_user. Note the "is_staff" and "master_user" property. I could not find any other obvious differences in the database. I did not look very intensitive though.
Changing is_staff and master_user does not seem to fix this behaviour, though.
@tonioo commented on GitHub (Feb 21, 2018):
You should not create a user like this because it won't update internal permissions. Can you try to run the following command:
@jakicoll commented on GitHub (Feb 22, 2018):
Yep, fixed that. Sorry for poking around too much.
Would you accept a PR that adds a warning to the output of manage.py createsuperuser?
@tonioo commented on GitHub (Feb 22, 2018):
Sure.