Skip to content

Commit

Permalink
Fixed user create task failing with invalid role (bigbluebutton#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Jun 4, 2020
1 parent f9e85aa commit 959cfe0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tasks/user.rake
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ namespace :user do
exit
end

# Create the default roles if not already created
Role.create_default_roles(u[:provider]) if Role.where(provider: u[:provider]).count.zero?

unless Role.exists?(name: u[:role], provider: u[:provider])
puts "Invalid Role - Role does not exist"
exit
Expand Down

0 comments on commit 959cfe0

Please sign in to comment.