Commit 481127c8 authored by Penom Nom's avatar Penom Nom
Browse files

Correct a bug introduced with the new user modification wich allowed a member to add another user

parent affb6437
......@@ -115,9 +115,13 @@ along with this program. If not, see <>.
{assign var=current_user_values value=""}
{foreach from=$project_users key=c_user_id item=user_values}
{if $ == $user_id}
{assign var=current_user_values value=$user_values}
{* highlight user personnal line *}
{assign var="emphasis" value=""}
{if $$user_id}
......@@ -194,16 +198,19 @@ along with this program. If not, see <>.
{assign var="multipleu_selection_btn" value="multipleu-selection-btn"}
{if $projects[key($projects)].is_admin || $projects[key($projects)].is_manager}
{elseif $$user_id}
{assign var="disabled_delete" value="disabled"}
{elseif $$user_id}
{assign var="disabled" value="disabled"}
{assign var="nou_selection_btn" value=""}
{if $current_user_values.right_id == '0'}
{assign var="nou_selection_btn" value=""}
{assign var="multipleu_selection_btn" value=""}
<th align="left" colspan="8">
With selection :
With selection :
<div class="btn-group">
<button id="add_user" type="button" class="btn {$nou_selection_btn} btn-small" {$disabled}><i class="icon-plus"></i> add user</button>
<button id="del_user" type="button" class="btn {$multipleu_selection_btn} btn-small" {$disabled}><i class="icon-minus"></i> delete user</button>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment