Skip to content
Snippets Groups Projects
Unverified Commit c75f20c3 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

More hotfixes (#5674)

* More hotfixes

* rspec
parent 0e30582d
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,8 @@ class Role < ApplicationRecord ...@@ -47,6 +47,8 @@ class Role < ApplicationRecord
'true' 'true'
when 'RoomLimit' when 'RoomLimit'
'100' '100'
when 'AccessToVisibilities'
Recording::VISIBILITIES.values
else else
'false' 'false'
end end
......
...@@ -85,5 +85,6 @@ module Greenlight ...@@ -85,5 +85,6 @@ module Greenlight
I18n.load_path += Dir[Rails.root.join('config/locales/*.{rb,yml}').to_s] I18n.load_path += Dir[Rails.root.join('config/locales/*.{rb,yml}').to_s]
config.i18n.fallbacks = %i[en] config.i18n.fallbacks = %i[en]
config.i18n.enforce_available_locales = false
end end
end end
...@@ -242,9 +242,6 @@ RSpec.describe Api::V1::RecordingsController, type: :controller do ...@@ -242,9 +242,6 @@ RSpec.describe Api::V1::RecordingsController, type: :controller do
before do before do
sign_in_user(signed_in_user) 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 end
it 'allows a shared user to update a recording visibility' do it 'allows a shared user to update a recording visibility' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment