Commit b3149b25 authored by alexpott's avatar alexpott

Issue #2045361 by dawehner, fubhy: Mark user_access() as deprecated.

parent 02c8071e
......@@ -442,12 +442,11 @@ function _user_role_permissions_update($roles) {
* @param \Drupal\Core\Session\AccountInterface $account
* (optional) The account to check, if not given use currently logged in user.
* @return
* @return bool
* Boolean TRUE if the current user has the requested permission.
* All permission checks in Drupal should go through this function. This
* way, we guarantee consistent behavior, and ensure that the superuser
* can perform all actions.
* @deprecated as of Drupal 8.0. Use
* \Drupal\Core\Session\AccountInterface::hasPermission()
function user_access($string, AccountInterface $account = NULL) {
global $user;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment