The "Groups" section's heading on user admin page was visible to mods
Since moderators can't manage a user groups, they shouldn't see the Groups heading on the user admin page. ## Before: ![before](https://cloud.githubusercontent.com/assets/17474474/25099135/c0e1d5a4-23b3-11e7-95d1-8036bff057d4.png) ## After: ![after](https://cloud.githubusercontent.com/assets/17474474/25099130/c060a538-23b3-11e7-8428-602fc523e9e8.png)
This commit is contained in:
parent
ae96631692
commit
3e048d686e
|
@ -343,32 +343,31 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class='details'>
|
{{#if currentUser.admin}}
|
||||||
<h1>{{i18n 'admin.groups.title'}}</h1>
|
<section class='details'>
|
||||||
|
<h1>{{i18n 'admin.groups.title'}}</h1>
|
||||||
{{#if currentUser.admin}}
|
<div class='display-row'>
|
||||||
<div class='display-row'>
|
<div class='field'>{{i18n 'admin.groups.automatic'}}</div>
|
||||||
<div class='field'>{{i18n 'admin.groups.automatic'}}</div>
|
<div class='value'>{{automaticGroups}}</div>
|
||||||
<div class='value'>{{automaticGroups}}</div>
|
|
||||||
</div>
|
|
||||||
<div class='display-row'>
|
|
||||||
<div class='field'>{{i18n 'admin.groups.custom'}}</div>
|
|
||||||
<div class='value'>
|
|
||||||
{{admin-group-selector selected=model.customGroups available=availableGroups}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class='controls'>
|
<div class='display-row'>
|
||||||
{{#if model.customGroups}}
|
<div class='field'>{{i18n 'admin.groups.custom'}}</div>
|
||||||
{{i18n 'admin.groups.primary'}}
|
<div class='value'>
|
||||||
{{combo-box content=model.customGroups value=model.primary_group_id nameProperty="name" none="admin.groups.no_primary"}}
|
{{admin-group-selector selected=model.customGroups available=availableGroups}}
|
||||||
{{/if}}
|
</div>
|
||||||
{{#if primaryGroupDirty}}
|
<div class='controls'>
|
||||||
{{d-button icon="check" class="ok" action="savePrimaryGroup"}}
|
{{#if model.customGroups}}
|
||||||
{{d-button icon="times" class="cancel" action="resetPrimaryGroup"}}
|
{{i18n 'admin.groups.primary'}}
|
||||||
{{/if}}
|
{{combo-box content=model.customGroups value=model.primary_group_id nameProperty="name" none="admin.groups.no_primary"}}
|
||||||
|
{{/if}}
|
||||||
|
{{#if primaryGroupDirty}}
|
||||||
|
{{d-button icon="check" class="ok" action="savePrimaryGroup"}}
|
||||||
|
{{d-button icon="times" class="cancel" action="resetPrimaryGroup"}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class='details'>
|
<section class='details'>
|
||||||
<h1>{{i18n 'admin.user.activity'}}</h1>
|
<h1>{{i18n 'admin.user.activity'}}</h1>
|
||||||
|
|
Loading…
Reference in New Issue