Skip to content

Commit

Permalink
Change Moderator Privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Jan 5, 2023
1 parent ffacbc6 commit a55bc3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/policies/announcement_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def update?
end

def destroy?
admin?
staff?
end
end
4 changes: 2 additions & 2 deletions app/policies/rule_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ def index?
end

def create?
staff?
admin?
end

def update?
staff?
admin?
end

def destroy?
Expand Down

0 comments on commit a55bc3a

Please sign in to comment.