mirror of
https://github.com/ansible/awx.git
synced 2026-06-29 10:28:01 -02:30
Merge pull request #1643 from chrismeyersfsu/fix-tower_special_group
do not allow tower group delete or name change
This commit is contained in:
@@ -469,6 +469,15 @@ class InstanceGroupAccess(BaseAccess):
|
||||
def can_change(self, obj, data):
|
||||
return self.user.is_superuser
|
||||
|
||||
def can_delete(self, obj):
|
||||
return self.user.is_superuser
|
||||
|
||||
def can_attach(self, obj, sub_obj, relationship, *args, **kwargs):
|
||||
return self.user.is_superuser
|
||||
|
||||
def can_unattach(self, obj, sub_obj, relationship, *args, **kwargs):
|
||||
return self.user.is_superuser
|
||||
|
||||
|
||||
class UserAccess(BaseAccess):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user