Skip to content
Snippets Groups Projects
Commit f4e2ad7c authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Non-global mods shouldn't create global links

parent d9da61dd
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,7 @@ class PinnedLinksController < ApplicationController
params.require(:pinned_link).permit(:label, :link, :post, :active, :shown_before, :shown_after, :community_id)
else
params.require(:pinned_link).permit(:label, :link, :post, :active, :shown_before, :shown_after)
.merge(community_id: RequestContext.community_id)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment