Skip to content
Snippets Groups Projects
Commit 9ae0dff6 authored by Steven Wittens's avatar Steven Wittens
Browse files

Typo in a permission check: diary admin interface was not available for admins with userid != 1.

parent b7651096
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -213,7 +213,7 @@ function diary_help() {
function diary_link($type) {
if ($type == "admin" && user_access("adminsiter diary entries")) {
if ($type == "admin" && user_access("administer diary entries")) {
$links[] = "<a href=\"admin.php?mod=diary\">online diaries</a>";
}
......@@ -359,4 +359,4 @@ function diary_admin() {
}
}
?>
\ No newline at end of file
?>
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