mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:39:26 +00:00
Only teachers should be able to remove users
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<div class="adminItem">
|
||||
<h2>{{pageTitle}}</h2>
|
||||
{{#each users as |user|}}
|
||||
{{> classUser user=user }}
|
||||
{{> classUser userType=../userType user=user }}
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<div class='classUser' data-uid='{{user.id}}'>
|
||||
{{#eq userType 'account'}}
|
||||
<i class='fa-solid fa-ban classUser__remove' title='Remove user from class'></i>
|
||||
{{/eq}}
|
||||
|
||||
<a href='/admin/user/{{user.id}}'>
|
||||
{{user.fullName}}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user