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

Fixed issue with role create (#4078)

parent f127bcf4
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@ class Role < ApplicationRecord
# Populate the Role Permissions with default values on Role creation.
# The created Role has the same permissions as the 'User' role
def create_role_permissions
return if %w[Administrator User Guest].include? name # skip creation for default roles
Permission.all.find_each do |permission|
value = case permission.name
when 'CreateRoom', 'SharedList', 'CanRecord'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment