Forbid admins getting banned
This commit is contained in:
parent
407595c12b
commit
1184410275
|
@ -36,11 +36,8 @@
|
||||||
= succeed "'s" do
|
= succeed "'s" do
|
||||||
= user.screen_name
|
= user.screen_name
|
||||||
privileges
|
privileges
|
||||||
%li
|
- unless user.admin?
|
||||||
%a{href: '#', data: { target: "#modal-ban", toggle: :modal }}
|
%li
|
||||||
%i.fa.fa-wrench
|
%a{href: '#', data: { target: "#modal-ban", toggle: :modal }}
|
||||||
- if user.banned?
|
%i.fa.fa-ban
|
||||||
Unban or extend ban duration
|
Ban Control
|
||||||
- else
|
|
||||||
Ban
|
|
||||||
= user.screen_name
|
|
||||||
|
|
Loading…
Reference in New Issue