Skip to content
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

Do not display block's content if a user doesn't have block/massaction:use #87

Closed
dmitriim opened this issue Sep 22, 2023 · 2 comments
Closed

Comments

@dmitriim
Copy link

There is a capability block/massaction:use that let users to use the block, however it's only checked in one spot https://github.com/Syxton/moodle-block_massaction/blob/master/action.php#L42

Would be much better UX if we check this capability before even rendering content so users without require permissions don't event see block.

TomoTsuyuki added a commit to TomoTsuyuki/moodle-block_massaction that referenced this issue Oct 19, 2023
TomoTsuyuki added a commit to TomoTsuyuki/moodle-block_massaction that referenced this issue Oct 19, 2023
@TomoTsuyuki
Copy link

I made PR #93 for this issue.
Please review and merge if it's ok.

TomoTsuyuki added a commit to TomoTsuyuki/moodle-block_massaction that referenced this issue Oct 25, 2023
TomoTsuyuki added a commit to TomoTsuyuki/moodle-block_massaction that referenced this issue Oct 25, 2023
TomoTsuyuki added a commit to TomoTsuyuki/moodle-block_massaction that referenced this issue Nov 21, 2023
TomoTsuyuki added a commit to TomoTsuyuki/moodle-block_massaction that referenced this issue Nov 21, 2023
@Syxton
Copy link
Owner

Syxton commented Jan 10, 2024

merged in both branches. Thank you for your work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants