mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
13 lines
262 B
Ruby
13 lines
262 B
Ruby
|
|
class RemoveMentionUsersPermission < ActiveRecord::Migration[6.1]
|
||
|
|
def up
|
||
|
|
Role.reset_column_information
|
||
|
|
Role.all.each do |r|
|
||
|
|
r.remove_permission!(:mention_users) if r.has_permission?(:mention_users)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
def down
|
||
|
|
# no-op
|
||
|
|
end
|
||
|
|
end
|