logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

custom_emoji_policy.rb (301B)


  1. # frozen_string_literal: true
  2. class CustomEmojiPolicy < ApplicationPolicy
  3. def index?
  4. staff?
  5. end
  6. def create?
  7. admin?
  8. end
  9. def update?
  10. admin?
  11. end
  12. def copy?
  13. admin?
  14. end
  15. def enable?
  16. staff?
  17. end
  18. def disable?
  19. staff?
  20. end
  21. def destroy?
  22. admin?
  23. end
  24. end