mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 00:36:00 +03:00
[PR #201] [MERGED] Disallow non-super admins to add/edit domains #297
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#297
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/opensolutions/ViMbAdmin/pull/201
Author: @PhrozenByte
Created: 8/3/2016
Status: ✅ Merged
Merged: 8/3/2016
Merged by: @barryo
Base:
master← Head:patch-1📝 Commits (2)
48bbea0Disallow non-super admins to add/edit domainsa96b760Remove domain edit button for non-super admins📊 Changes
2 files changed (+7 additions, -3 deletions)
View changed files
📝
application/controllers/DomainController.php(+2 -0)📝
application/views/domain/list.phtml(+5 -3)📄 Description
Non-super admins simply don't have to visit the domain edit page. The only option non-super admins have write access to, is
toggle-active. However, this option is already accessibly through the AJAX toggle button on the domain list page. The easiest solution is therefore to disallow navigating to the add (btw, non-super admins were able to create domains until now, however, they weren't able to assign admins to domains) and edit page.Fixes #30, #181
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.