Role.addPermission

Adds a permission to the role.

class Role
final
addPermission

Parameters

resource string

The resource.

readAccess bool

Boolean determining whether the role has read-access.

writeAccess bool

Boolean determining whether the role has write-access.

updateAccess bool

Boolean determining whether the role has update-access.

deleteAccess bool

Boolean determining whether the role has delete-access.

Return Value

Type: Role

The role, allowing the function to be chained.

Meta