BURs: don't allow builders to edit or reject BURs by other users.
Only admins can edit or reject BURs by other users now. The BUR creator can still edit or reject their own BURs.
This commit is contained in:
@@ -4,7 +4,7 @@ class BulkUpdateRequestPolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def update?
|
||||
unbanned? && (user.is_builder? || record.user_id == user.id)
|
||||
unbanned? && (user.is_admin? || record.user_id == user.id)
|
||||
end
|
||||
|
||||
def approve?
|
||||
|
||||
Reference in New Issue
Block a user