Commit a8521862 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent ac42f34d
......@@ -247,17 +247,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{/if}
<td>
{if $user_values.right_id=='2'}
{if $user_values.right_id=='2' && !$projects[key($projects)].is_admin}
<select id="cbb_right_level_{$user_values.id}" name="right_level" disabled>
<option value="2" selected="selected">{$llang.right_level_admin}</option>
</select>
{else}
{if $projects[key($projects)].is_admin || $projects[key($projects)].is_manager && $user_values.cruser_id==$user_id}
{if ($projects[key($projects)].is_admin && $user_values.id!=$user_id)
|| ($projects[key($projects)].is_manager && $user_values.id!=$user_id && $user_values.right_id!='2')}
{assign var="disabled" value=""}
{else}
{assign var="disabled" value="disabled"}
{/if}
<select id="cbb_right_level_{$user_values.id}" name="right_level" {$disabled}>
{if $projects[key($projects)].is_admin && $user_values.right_id=='2'}
<option value="2" selected="selected">{$llang.right_level_admin}</option>
{/if}
{if $user_values.right_id=='1'}
<option value="1" selected="selected">{$llang.right_level_manager}</option>
{else}
......
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