Class: Hippo::Access::Roles::Administrator

Inherits:
Hippo::Access::Role show all
Defined in:
lib/hippo/access/roles/administrator.rb

Constant Summary

Constants inherited from Hippo::Access::Role

Hippo::Access::Role::ALL

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Hippo::Access::Role

all_available, delete, grant, grant_global_access, inherited, #initialize, lock, lock_writes, read, write

Constructor Details

This class inherits a constructor from Hippo::Access::Role

Class Method Details

.can_access_locked_roles?(roles) ⇒ Boolean

The admin can access all the things

Returns:

  • (Boolean)

9
10
11
# File 'lib/hippo/access/roles/administrator.rb', line 9

def self.can_access_locked_roles?(roles)
    true
end

Instance Method Details

#can_delete?(model) ⇒ Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/hippo/access/roles/administrator.rb', line 21

def can_delete?(model)
    true
end

#can_read?(model) ⇒ Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/hippo/access/roles/administrator.rb', line 13

def can_read?(model)
    true
end

#can_write?(model) ⇒ Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/hippo/access/roles/administrator.rb', line 17

def can_write?(model)
    true
end