Skip to content
Snippets Groups Projects

Show harddisk and database quota dashlet only when user has access

Merged Helmo requested to merge helmo/ispconfig3:patch-skip-irrelevant-dashlets into stable-3.1

We currently show empty tables when a user has no access to the 'sites' module.

I'm adding a generic function verify_module_permissions that returns a boolean, it's a simplification of the check_module_permissions function, which reuses this new function.

I'm open to suggestions as to improve this code a bit more...

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply
Loading