.
This commit is contained in:
parent
6b38edf464
commit
e7bc6c733a
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue