From 5ceb6f419311e27409bb8908e2fc33583eed287e Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Thu, 1 Aug 2019 08:40:15 -0500 Subject: [PATCH] Update main.php --- ext/alias_editor/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/alias_editor/main.php b/ext/alias_editor/main.php index 5e8e4c11..4321c78a 100644 --- a/ext/alias_editor/main.php +++ b/ext/alias_editor/main.php @@ -36,7 +36,7 @@ class AliasEditor extends Extension if ($event->page_matches("alias")) { if ($event->get_arg(0) == "add") { - if ($user->can(Permissions::MANAGE_ALIAS_LIST))) { + if ($user->can(Permissions::MANAGE_ALIAS_LIST)) { if (isset($_POST['oldtag']) && isset($_POST['newtag'])) { try { $aae = new AddAliasEvent($_POST['oldtag'], $_POST['newtag']); @@ -49,7 +49,7 @@ class AliasEditor extends Extension } } } elseif ($event->get_arg(0) == "remove") { - if ($user->can(Permissions::MANAGE_ALIAS_LIST))) { + if ($user->can(Permissions::MANAGE_ALIAS_LIST)) { if (isset($_POST['oldtag'])) { $database->execute("DELETE FROM aliases WHERE oldtag=:oldtag", ["oldtag" => $_POST['oldtag']]); log_info("alias_editor", "Deleted alias for ".$_POST['oldtag'], "Deleted alias");