Class: Lanes::Access::Roles::Administrator

Inherits:
Lanes::Access::Role show all
Defined in:
lib/lanes/access/roles/administrator.rb

Constant Summary

Constants inherited from Lanes::Access::Role

Lanes::Access::Role::ALL

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Lanes::Access::Role

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

Constructor Details

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

Class Method Details

.can_access_locked_roles?(roles) ⇒ Boolean

The admin can access all the things



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

def self.can_access_locked_roles?(roles)
    true
end

Instance Method Details

#can_delete?(model) ⇒ Boolean



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

def can_delete?(model)
    true
end

#can_read?(model) ⇒ Boolean



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

def can_read?(model)
    true
end

#can_write?(model) ⇒ Boolean



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

def can_write?(model)
    true
end