Class CharactersUser
In: app/models/characters_user.rb
Parent: ActiveRecord::Base

Methods

Protected Instance methods

[Source]

    # File app/models/characters_user.rb, line 8
 8:   def authorized_for_create?
 9:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
10:   end

[Source]

    # File app/models/characters_user.rb, line 16
16:   def authorized_for_destroy?
17:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
18:   end

[Source]

    # File app/models/characters_user.rb, line 20
20:   def authorized_for_read?
21:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
22:   end

[Source]

    # File app/models/characters_user.rb, line 12
12:   def authorized_for_update?
13:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
14:   end

[Validate]