From e7bc6c733aef7be08142b49ef9581ca6eea01d88 Mon Sep 17 00:00:00 2001 From: NottyNoz Date: Mon, 20 Mar 2023 13:17:39 -0400 Subject: [PATCH] . --- ext/approval/main.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/approval/main.php b/ext/approval/main.php index 736dc665..90158ff8 100644 --- a/ext/approval/main.php +++ b/ext/approval/main.php @@ -121,6 +121,13 @@ class Approval extends Extension } } + public function onUserBlockBuilding(UserBlockBuildingEvent $event) + { + global $user; + if ($user->can(Permissions::APPROVE_IMAGE)) { + $event->add_link("Pending Approval", make_link("/post/list/approved%3Ano/1"), 60); + } + } public const SEARCH_REGEXP = "/^approved:(yes|no)/"; public function onSearchTermParse(SearchTermParseEvent $event)