Skip to content
Snippets Groups Projects
Commit ebd7e8fb authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2062001 by InternetDevels, DeimoS: Replace user_access() calls with...

Issue #2062001 by InternetDevels, DeimoS: Replace user_access() calls with ->hasPermission() in language module.
parent e5d92017
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ function language_menu() {
* @deprecated Use \Drupal\language\LanguageAccessController instead.
*/
function language_access_language_edit_or_delete($language) {
return !$language->locked && user_access('administer languages');
return !$language->locked && \Drupal::currentUser()->hasPermission('administer languages');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment