diff --git a/app/models/role.rb b/app/models/role.rb index 14ba46fe6f..3168c39115 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -47,6 +47,8 @@ def create_role_permissions 'true' when 'RoomLimit' '100' + when 'AccessToVisibilities' + Recording::VISIBILITIES.values else 'false' end diff --git a/config/application.rb b/config/application.rb index 362ceec057..5417b3dc75 100644 --- a/config/application.rb +++ b/config/application.rb @@ -85,5 +85,6 @@ class Application < Rails::Application I18n.load_path += Dir[Rails.root.join('config/locales/*.{rb,yml}').to_s] config.i18n.fallbacks = %i[en] + config.i18n.enforce_available_locales = false end end diff --git a/spec/controllers/recordings_controller_spec.rb b/spec/controllers/recordings_controller_spec.rb index 75233e42e2..fc3d753af8 100644 --- a/spec/controllers/recordings_controller_spec.rb +++ b/spec/controllers/recordings_controller_spec.rb @@ -242,9 +242,6 @@ before do sign_in_user(signed_in_user) - - # IDK where this is created so, small hack to remove it - RolePermission.find_by(permission: Permission.find_by(name: 'AccessToVisibilities'), value: 'false').destroy end it 'allows a shared user to update a recording visibility' do