Commit 614db344 authored by webchick's avatar webchick

Issue #2061985 by InternetDevels: Replace user_access() calls with...

Issue #2061985 by InternetDevels: Replace user_access() calls with ->hasPermission() in entity module.
parent bee10263
......@@ -24,7 +24,7 @@ protected function checkAccess(EntityInterface $entity, $operation, $langcode, A
return TRUE;
}
elseif (in_array($operation, array('create', 'update', 'delete'))) {
return user_access('administer display modes', $account);
return $account->hasPermission('administer display modes');
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment