Searched defs:admin (Results 1 - 2 of 2) sorted by relevance

/ontohub/app/models/
H A Dteam.rb7 # create admin user after team creation
28 # does the given user have admin-privileges in this team?
29 def admin?(user)
30 user && (user.admin? || team_users.admin.find_by_user_id(user.id))
35 # create admin user after team-creation
39 admin: true,
/ontohub/app/helpers/
H A Dapplication_helper.rb3 def admin?
4 current_user.try(:admin?)

Completed in 27 milliseconds