struct DppmRestApi::Config::Group
- DppmRestApi::Config::Group
- Struct
- Value
- Object
Overview
A group represents an access role that a user may be a member of.
Included Modules
- JSON::Serializable
- JSON::Serializable::Strict
Defined in:
config/group.crConstant Summary
-
DEFAULT_PERMISSIONS =
{"/**" => Route.new(Access.deny), "/user/me" => Route.new(Access::Read), "/{app,pkg,src,service}/**" => Route.new(Access::All, {"namespace" => ["default-namespace"]})}
Constructors
Instance Method Summary
-
#can_access?(path : String, query : HTTP::Params, requested_permissions : Access) : Bool
returns true if members of this group may access a request on the given route, with the given permission level.
-
#id : Int32
The identifier used to refer to this
Group
. -
#id=(id : Int32)
The identifier used to refer to this
Group
. -
#name : String
The human-readable name of the
Group
. -
#name=(name : String)
The human-readable name of the
Group
. -
#permissions : Hash(String, Route)
All route-matching globs associated with this
Group
, mapped to the group's permission level. -
#permissions=(permissions : Hash(String, Route))
All route-matching globs associated with this
Group
, mapped to the group's permission level.
Constructor Detail
Instance Method Detail
returns true if members of this group may access a request on the given route, with the given permission level.
All route-matching globs associated with this Group
, mapped to the
group's permission level.
All route-matching globs associated with this Group
, mapped to the
group's permission level.