diff options
author | ThibG <thib@sitedethib.com> | 2018-12-09 16:38:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 16:38:09 +0100 |
commit | c6b7b984891413cb1db673df2cbea12f8e6f0f05 (patch) | |
tree | 46e3982da219f7a5ac34c3aecaf32f0990578d1d /app/policies | |
parent | e3682c9c1750e5e7e5d2f817e29f6760a18400ca (diff) | |
parent | 4f59d1efd786c08cc63e0c14dceada80c37ab8da (diff) |
Merge pull request #849 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/tag_policy.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/policies/tag_policy.rb b/app/policies/tag_policy.rb new file mode 100644 index 000000000..c63de01db --- /dev/null +++ b/app/policies/tag_policy.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class TagPolicy < ApplicationPolicy + def index? + staff? + end + + def hide? + staff? + end + + def unhide? + staff? + end +end |