mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
Remove unused "mention_users" permission from the roles table (#37974).
git-svn-id: https://svn.redmine.org/redmine/trunk@22347 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
12
db/migrate/20231012112407_remove_mention_users_permission.rb
Normal file
12
db/migrate/20231012112407_remove_mention_users_permission.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user