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
......@@ -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
?>
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