Skip to content

Commit

Permalink
More hotfixes (#5674)
Browse files Browse the repository at this point in the history
* More hotfixes

* rspec
  • Loading branch information
farhatahmad authored Jan 23, 2024
1 parent 0e30582 commit c75f20c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/models/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def create_role_permissions
'true'
when 'RoomLimit'
'100'
when 'AccessToVisibilities'
Recording::VISIBILITIES.values
else
'false'
end
Expand Down
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions spec/controllers/recordings_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c75f20c

Please sign in to comment.