- Restructuring the assets
- Worked on the schedule - Removed some gems
This commit is contained in:
parent
a9207671b8
commit
b801f0dc19
123 changed files with 13587 additions and 33123 deletions
|
|
@ -13,6 +13,10 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def has_role?(current_user, role)
|
||||
if current_user.nil?
|
||||
return false
|
||||
end
|
||||
|
||||
return !!current_user.role?(role.to_s.camelize)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue