60a429e463
These match Basecamp and the existing predicate methods
11 lines
192 B
Ruby
11 lines
192 B
Ruby
module Authorization
|
|
private
|
|
def ensure_admin
|
|
head :forbidden unless Current.user.admin?
|
|
end
|
|
|
|
def ensure_staff
|
|
head :forbidden unless Current.user.staff?
|
|
end
|
|
end
|