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 = 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