Commit ebd7e8fb authored by webchick's avatar webchick

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
......@@ -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');
}
/**
......
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