Kill off all can_read access methods

This commit is contained in:
AlanCoding
2019-07-18 11:14:57 -04:00
parent e08e70efb4
commit d302f134ac
3 changed files with 2 additions and 57 deletions

View File

@@ -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

View File

@@ -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)