Improved wording.
This commit is contained in:
parent
eb8d23ba75
commit
b1c57552d3
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ returns
|
|||
normal_permissions = (all_permissions - admin_permissions) | (admin_permissions - all_permissions) # all other permissions besides admin.*/ticket.agent
|
||||
return true if default_at_signup != true # means if default_at_signup = false, no need further checks
|
||||
return true if self.permission_ids.all? { |i| normal_permissions.include? i } # allow user to choose only normal permissions
|
||||
raise Exceptions::UnprocessableEntity, 'Cannot set default at signup when role has admin and ticket agent properties'
|
||||
raise Exceptions::UnprocessableEntity, 'Cannot set default at signup when role has admin or ticket.agent permissions.'
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue