Skip to content

Commit 63338aa

Browse files
committed
show moderator organizations only if user is admin
1 parent b5b1fd0 commit 63338aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/views/users/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h3 translate>USER_DETAIL_RIGHTS</h3>
117117
label="{{::'USER_DETAIL_FORMS' | translate}}"
118118
model="user.data.forms"></field>
119119

120-
<field name="moderatorOrganizations" type="checkbox-group"
120+
<field ng-if="::$user.isAdmin()" name="moderatorOrganizations" type="checkbox-group"
121121
disabled="user.data.role !== 'moderator'"
122122
choices="user.moderatorOrganizations"
123123
label="{{::'USER_DETAIL_MODERATOR_ORGANIZATIONS' | translate}}"

0 commit comments

Comments
 (0)