Project

General

Profile

Patch #37974 ยป 37974.patch

Go MAEDA, 2023-10-12 13:39

View differences:

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
    (1-1/1)