Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
user settings: allow changing role when creating user (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcejedi committed Apr 20, 2013
1 parent ae5e401 commit e85a4e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bonfire/modules/users/views/settings/user_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
</div>
</fieldset>

<?php if (isset($user) && has_permission('Bonfire.Roles.Manage') && has_permission('Permissions.'.$user->role_name.'.Manage') && isset($roles) ) :?>
<?php if (has_permission('Bonfire.Roles.Manage') &&
(!isset($user) || (isset($user) && has_permission('Permissions.'.$user->role_name.'.Manage'))))
:?>
<fieldset>
<legend><?php echo lang('us_role'); ?></legend>

Expand Down

0 comments on commit e85a4e7

Please sign in to comment.