mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-25 17:31:48 -05:00
implement two methods for can_edit field for testing
This commit is contained in:
@@ -105,6 +105,9 @@ class ProjectOptions(models.Model):
|
||||
on_delete=models.SET_NULL,
|
||||
)
|
||||
|
||||
def get_can_edit(self, user):
|
||||
return user in self.admin_role
|
||||
|
||||
def clean_scm_type(self):
|
||||
return self.scm_type or ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user