permission string fix

This commit is contained in:
Yuri Kuznetsov
2024-04-19 11:42:37 +03:00
parent cd216007af
commit 46da1bb8a0
10 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class DataPrivacy
{
public function __construct(private Erasor $erasor, private Acl $acl)
{
if ($this->acl->getPermissionLevel('dataPrivacyPermission') === Acl\Table::LEVEL_NO) {
if ($this->acl->getPermissionLevel('dataPrivacy') === Acl\Table::LEVEL_NO) {
throw new Forbidden();
}
}