Skip to content
Snippets Groups Projects
Unverified Commit e4fdd080 authored by luap42's avatar luap42 Committed by GitHub
Browse files

Fix scoping issue for us global mods

parent a3fdebc8
No related merge requests found
...@@ -59,7 +59,11 @@ class PinnedLinksController < ApplicationController ...@@ -59,7 +59,11 @@ class PinnedLinksController < ApplicationController
private private
def set_pinned_link def set_pinned_link
@link = PinnedLink.find params[:id] @link = if current_user.is_global_moderator
PinnedLink.unscoped.find params[:id]
else
PinnedLink.find params[:id]
end
end end
def pinned_link_params def pinned_link_params
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment