Forbid admins getting banned

This commit is contained in:
Yuki 2015-04-23 06:39:23 +05:30
parent 407595c12b
commit 1184410275
1 changed files with 5 additions and 8 deletions

View File

@ -36,11 +36,8 @@
= succeed "'s" do
= user.screen_name
privileges
%li
%a{href: '#', data: { target: "#modal-ban", toggle: :modal }}
%i.fa.fa-wrench
- if user.banned?
Unban or extend ban duration
- else
Ban
= user.screen_name
- unless user.admin?
%li
%a{href: '#', data: { target: "#modal-ban", toggle: :modal }}
%i.fa.fa-ban
Ban Control