Skip to content

Commit

Permalink
Dont display the access options when not avalible
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Jan 18, 2018
1 parent b23a06a commit 393ea65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/theme/default/admin/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@
<tr>
<td>{{'Access level:'|trans}}</td>
<td>
<select name="access" id="access">
<select name="access" id="access" {% if currentUser.accessLevel != 1 %}style="display:none"{% endif %}>
{% for level, name in accessLevels %}
<option{% if user.accessLevel == level %} selected="selected"{% endif %} value="{{level}}">
{{name}}
</option>
{% endfor %}
</select>
{% if currentUser.accessLevel != 1 %}
{{accessLevels[user.accessLevel]}}
{% endif %}
</td>
</tr>
{% if currentUser.id == user.id %}
Expand Down

0 comments on commit 393ea65

Please sign in to comment.