mass source set perm
This commit is contained in:
parent
ac692cfff7
commit
81c7ac0120
@ -64,6 +64,7 @@ new UserClass("base", null, array(
|
||||
"edit_image_owner" => False,
|
||||
"edit_image_lock" => False,
|
||||
"bulk_edit_image_tag" => False,
|
||||
"bulk_edit_image_source" => False,
|
||||
"delete_image" => False,
|
||||
|
||||
"ban_image" => False,
|
||||
@ -124,6 +125,7 @@ new UserClass("admin", "base", array(
|
||||
"edit_image_source" => True,
|
||||
"edit_image_owner" => True,
|
||||
"bulk_edit_image_tag" => True,
|
||||
"bulk_edit_image_source" => True,
|
||||
"mass_tag_edit" => True,
|
||||
"create_image_report" => True,
|
||||
"view_image_report" => True,
|
||||
|
@ -97,7 +97,7 @@ class TagEdit extends Extension {
|
||||
|
||||
public function onPostListBuilding(PostListBuildingEvent $event) {
|
||||
global $user;
|
||||
if($user->is_admin() && !empty($event->search_terms)) {
|
||||
if($user->can("bulk_edit_image_source") && !empty($event->search_terms)) {
|
||||
$this->theme->display_mss(implode(" ", $event->search_terms));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user