mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
Prevent deleting organizations on basic licenses
Plus unit tests
This commit is contained in:
@@ -262,6 +262,7 @@ class OrganizationAccess(BaseAccess):
|
||||
self.user in obj.admins.all())
|
||||
|
||||
def can_delete(self, obj):
|
||||
self.check_license(feature='multiple_organizations')
|
||||
return self.can_change(obj, None)
|
||||
|
||||
class InventoryAccess(BaseAccess):
|
||||
|
||||
Reference in New Issue
Block a user