mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 14:39:26 -02:30
fix system auditor getter logic
This commit is contained in:
@@ -41,7 +41,7 @@ from awx.main.models.organization import (
|
||||
Permission,
|
||||
Team,
|
||||
)
|
||||
|
||||
from awx.main.models.rbac import Role
|
||||
from awx.main.models.notifications import (
|
||||
NotificationTemplate,
|
||||
Notification
|
||||
@@ -262,6 +262,13 @@ def admin(user):
|
||||
return user('admin', True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def system_auditor(user):
|
||||
u = user(False)
|
||||
Role.singleton('system_auditor').members.add(u)
|
||||
return u
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def alice(user):
|
||||
return user('alice', False)
|
||||
|
||||
Reference in New Issue
Block a user