Method: AppEngine::OAuth.admin?

Defined in:
lib/appengine-apis/oauth.rb

.admin?Boolean

Returns true if the user making this request is an admin for this application, false otherwise.

This is a separate function, and not a member function of the User class, because admin status is not persisted in the datastore. It only exists for the user making this request right now.

Returns:



54
55
56
# File 'lib/appengine-apis/oauth.rb', line 54

def admin?
  Service.is_user_admin?
end