Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
fixed adding a new user with no roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Mar 11, 2009
1 parent 8ac1f91 commit c059475
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -61,7 +61,7 @@ def destroy
protected
def handle_roles
Role.base_roles.each do |role|
if params[:roles].include?(role)
if (params[:roles] || []).include?(role)
@user.has_role(role)
else
@user.has_no_role(role)
Expand Down

0 comments on commit c059475

Please sign in to comment.