Patch #37974 ยป 37974.patch
db/migrate/20231012112407_remove_mention_users_permission.rb | ||
---|---|---|
1 |
class RemoveMentionUsersPermission < ActiveRecord::Migration[6.1] |
|
2 |
def up |
|
3 |
Role.reset_column_information |
|
4 |
Role.all.each do |r| |
|
5 |
r.remove_permission!(:mention_users) if r.has_permission?(:mention_users) |
|
6 |
end |
|
7 |
end |
|
8 | ||
9 |
def down |
|
10 |
# no-op |
|
11 |
end |
|
12 |
end |