-
-
Notifications
You must be signed in to change notification settings - Fork 544
Rename closed category/thread permission checks #1980
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
base: main
Are you sure you want to change the base?
Rename closed category/thread permission checks #1980
Conversation
permissions check_post_in_closed_category_permission and check_post_in_closed_thread_permission have been renamed to check_locked_category_permission and check_locked_thread_permission respectively
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left some nits
@@ -28,11 +28,11 @@ | |||
from .check_edit_thread_poll_permission import check_edit_thread_poll_permission_hook | |||
from .check_edit_thread_post_permission import check_edit_thread_post_permission_hook | |||
from .check_open_thread_poll_permission import check_open_thread_poll_permission_hook | |||
from .check_post_in_closed_category_permission import ( | |||
check_post_in_closed_category_permission_hook, | |||
from .check_locked_category_permission import ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reorder imports
@@ -103,8 +103,8 @@ | |||
"check_edit_thread_poll_permission_hook", | |||
"check_edit_thread_post_permission_hook", | |||
"check_open_thread_poll_permission_hook", | |||
"check_post_in_closed_category_permission_hook", | |||
"check_post_in_closed_thread_permission_hook", | |||
"check_locked_category_permission_hook", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please order this list alphabetically
dev-docs/plugins/hooks/reference.md
Outdated
@@ -85,8 +85,8 @@ Hooks instances are importable from the following Python modules: | |||
- [`check_edit_thread_poll_permission_hook`](./check-edit-thread-poll-permission-hook.md) | |||
- [`check_edit_thread_post_permission_hook`](./check-edit-thread-post-permission-hook.md) | |||
- [`check_open_thread_poll_permission_hook`](./check-open-thread-poll-permission-hook.md) | |||
- [`check_post_in_closed_category_permission_hook`](./check-post-in-closed-category-permission-hook.md) | |||
- [`check_post_in_closed_thread_permission_hook`](./check-post-in-closed-thread-permission-hook.md) | |||
- [`check_locked_category_permission_hook`](./check-post-in-closed-category-permission-hook.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run python generate_dev_docs.py
in main directory instead of manually updating hooks reference.
Build is failing, please format code with |
Fixes #1955
Misago permission checks:
Had been renamed to:
Including a couple file names.