Browse Source

[CTDA9-67] Check update operation in access controller.

pull/4/head
Nigel Banks 3 years ago
parent
commit
f96f22fa97
  1. 1
      src/FixityCheckAccessControlHandler.php

1
src/FixityCheckAccessControlHandler.php

@ -24,6 +24,7 @@ class FixityCheckAccessControlHandler extends EntityAccessControlHandler {
case 'view revision': case 'view revision':
return AccessResult::allowedIfHasPermission($account, 'view fixity checks')->cachePerPermissions(); return AccessResult::allowedIfHasPermission($account, 'view fixity checks')->cachePerPermissions();
case 'update':
case 'delete': case 'delete':
return AccessResult::allowedIfHasPermission($account, $admin_permission)->cachePerPermissions(); return AccessResult::allowedIfHasPermission($account, $admin_permission)->cachePerPermissions();

Loading…
Cancel
Save