Sha256: 7fe83ed5b0117b3d2d5847edda2d2d4483fb93a3d1ec9e24866663242bdefebd

Contents?: true

Size: 590 Bytes

Versions: 9

Compression:

Stored size: 590 Bytes

Contents

module Hippo
    module Access

        module Roles

            class Administrator < Role

                # The admin can access all the things
                def self.can_access_locked_roles?(roles)
                    true
                end

                def can_read?(model)
                    true
                end

                def can_write?(model)
                    true
                end

                def can_delete?(model)
                    true
                end

                lock User, :password_digest

            end

        end

    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.8 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.7 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.6 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.5 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.4 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.3 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.2 lib/hippo/access/roles/administrator.rb
hippo-fw-0.9.1 lib/hippo/access/roles/administrator.rb