Module: GSGraph::Connections::Admins
- Included in:
- Page
- Defined in:
- lib/gs_graph/connections/admins.rb
Instance Method Summary collapse
Instance Method Details
#admin?(user, options = {}) ⇒ Boolean
4 5 6 7 |
# File 'lib/gs_graph/connections/admins.rb', line 4 def admin?(user, = {}) admin = self.connection :admins, .merge(:connection_scope => user.identifier) admin.present? end |