The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
207 B

  1. # frozen_string_literal: true
  2. class AnnouncementPolicy < ApplicationPolicy
  3. def index?
  4. staff?
  5. end
  6. def create?
  7. admin?
  8. end
  9. def update?
  10. admin?
  11. end
  12. def destroy?
  13. admin?
  14. end
  15. end