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

Project-Specific Permissions Not Respected for Calendar Settings #101

Open
compsoul opened this issue Jan 31, 2025 · 1 comment
Open

Project-Specific Permissions Not Respected for Calendar Settings #101

compsoul opened this issue Jan 31, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@compsoul
Copy link

compsoul commented Jan 31, 2025

Description:

There is an issue in the Mantis BT Calendar plugin where the calendar permissions do not respect project-specific access levels. Instead of applying the permissions assigned to a user for a specific project, the system incorrectly uses the global access level, preventing users from managing calendar settings even when they should have the appropriate rights.

Steps to Reproduce:

  • Assign a user a different access level for a specific project than their global access level.
  • Ensure that in the "Calendar Permissions" settings, the assigned project-level role should allow managing calendar settings.
  • Attempt to modify calendar settings within the project.

Expected Behavior:

  • The user should be able to edit the calendar settings based on the project-specific access level.

Actual Behavior:

  • The system applies the global access level instead of the project-specific one, preventing the user from editing calendar settings.

Environment:

  • Mantis BT version: 2.27.0
  • Mantis BT Calendar plugin version: 2.8.0
  • PHP: 8.0.30

Additional Notes: The permissions for "Manage Calendar Settings" are set correctly in the UI but are overridden by the global settings rather than the project-specific access level. This issue affects users who need different permissions per project.

@brlumen brlumen self-assigned this Feb 1, 2025
@brlumen brlumen added the bug Something isn't working label Feb 1, 2025
@brlumen
Copy link
Member

brlumen commented Feb 1, 2025

@compsoul, thank you for this error message.

Indeed, there is illogicality in the levels of access to the calendar and its settings if the user has. I'll think about whether it is worth changing the model, but for now I suggest you change the level of minimal access to the calendar mood for all projects:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants