Back end - temporary boosting of trust levels

This commit is contained in:
Navin
2013-07-03 10:27:40 +02:00
parent f92d9cec47
commit 3da37506da
9 changed files with 139 additions and 7 deletions

View File

@@ -137,6 +137,10 @@ class Guardian
user && is_staff?
end
def can_change_trust_level?(user)
can_administer?(user)
end
def can_block_user?(user)
user && is_staff? && not(user.staff?)
end