mirror of
https://github.com/ansible/awx.git
synced 2026-09-04 19:08:30 -02:30
Kill off all can_read access methods
This commit is contained in:
@@ -22,7 +22,7 @@ def test_label_get_queryset_su(label, user):
|
||||
@pytest.mark.django_db
|
||||
def test_label_access(label, user):
|
||||
access = LabelAccess(user('user', False))
|
||||
assert not access.can_read(label)
|
||||
assert access.can_read(label)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
|
||||
@@ -87,7 +87,7 @@ def test_notification_template_access_admin(role, organization_factory, notifica
|
||||
assert access.can_change(notification_template, {'organization': present_org.id})
|
||||
assert access.can_delete(notification_template)
|
||||
|
||||
nf = notification_template_factory("test-orphaned")
|
||||
nf = notification_template_factory("test-orphaned").notification_template
|
||||
assert not access.can_read(nf)
|
||||
assert not access.can_change(nf, None)
|
||||
assert not access.can_delete(nf)
|
||||
|
||||
Reference in New Issue
Block a user