New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New permissions framework #1705
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rafalp
added
area: frontend
This issue involves JavaScript, React.js and Node
area: docs
area: backend
This issue involves Python, Django or dependency (eg. database)
area: theme
This issue involves HTML and CSS
feature: auth
This issue involves auth
feature: read tracker
Tracks read and unread threads and posts
feature: search
Searching for content or users
feature: extensions
Extension points for 3rd party plugins and customizations
feature: threads list
Lists of threads
feature: admin
Affects admin control panel
labels
Dec 21, 2023
rafalp
force-pushed
the
fix-1527-new-permission-system
branch
from
December 25, 2023 12:01
09287fe
to
6aab883
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: backend
This issue involves Python, Django or dependency (eg. database)
area: docs
area: frontend
This issue involves JavaScript, React.js and Node
area: theme
This issue involves HTML and CSS
feature: admin
Affects admin control panel
feature: auth
This issue involves auth
feature: extensions
Extension points for 3rd party plugins and customizations
feature: read tracker
Tracks read and unread threads and posts
feature: search
Searching for content or users
feature: threads list
Lists of threads
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New permission system for Misago. Will exist in parallel to old one until all features are using it exclusively.
Fixes #1527
TODO
misago.User.is_misago_admin
for misago admin statusmisago.User.is_misago_root
for misago super-admin statusis_staff
andis_superuser
groups
cacheuser.is_misago_admin
from ban checksuser.is_staff
in special conditions withuser.is_misago_admin
staffuser
fixture use in testssuperuser
fixture use in testsfake_category
factory to set default permissions