diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-12-06 17:36:11 +0100 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2018-12-06 15:59:26 -0800 |
commit | ee5213093a084c2eb5fa97fb4bdea6019dda5cf5 (patch) | |
tree | fedcca21d531082c671750f2d86c43e2895f91ef /app/policies | |
parent | a78e3f2206ddaeeb3e6f1c23e4b524af29e92b04 (diff) |
Add profile directory (#9427)
Fix #5578
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 |