WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

user_access gone in Drupal8, now to check permissions in Drupal 8 Do This

Submitted by barnettech on Tue, 12/17/2013 - 14:46

https://drupal.org/node/2049309

hasPermission('name of permission');
$account = user_load('3');
$account->hasPermission('name of permission');
?>