Skip to content

Commit

Permalink
doh
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Feb 25, 2024
1 parent f163ce6 commit 89086d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/rating/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public function onPageRequest(PageRequestEvent $event): void
# TODO: put this into its own extension so we don't touch Ratings
if(($event->page_matches("rating/save_ratingView")) || ($event->page_matches("save_ratingView"))) {
#if (!$user->can(Permissions::BULK_EDIT_IMAGE_RATING)) {
if(! ((in_array("e", $this->get_user_class_privs($user))) || (in_array("?", $this->get_user_class_privs($user)))))
if(! ((in_array("e", $this->get_user_class_privs($user))) || (in_array("?", $this->get_user_class_privs($user))))) {
throw new PermissionDenied("Permission denied");
} else {
error_log("can save rating...");
Expand Down

0 comments on commit 89086d7

Please sign in to comment.