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 <http://www.gnu.org/licenses/>.
<th>Right</th>
</tr>
</thead>
{assign var=current_user_values value=""}
<tbody>
{foreach from=$project_users key=c_user_id item=user_values}
{if $user_values.id == $user_id}
{assign var=current_user_values value=$user_values}
{/if}
{* highlight user personnal line *}
{assign var="emphasis" value=""}
{if $user_values.id==$user_id}
......@@ -194,16 +198,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{assign var="multipleu_selection_btn" value="multipleu-selection-btn"}
{if $projects[key($projects)].is_admin || $projects[key($projects)].is_manager}
{elseif $user_values.id==$user_id}
{assign var="disabled_delete" value="disabled"}
{elseif $current_user_values.id==$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=""}
{/if}
{assign var="multipleu_selection_btn" value=""}
{/if}
<tfoot>
<tr>
<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>
......
Markdown is supported
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