SimplePermission#
Superclasses: Permission, Object
GSimplePermission is a trivial implementation of Permission
that represents a permission that is either always or never allowed. The
value is given at construction and doesn’t change.
Calling acquire or release
on a GSimplePermission will result in errors.
Constructors#
- class SimplePermission
- classmethod new(allowed: bool) Permission#
Creates a new
Permissioninstance that represents an action that is either always or never allowed.Added in version 2.26.
- Parameters:
allowed –
Trueif the action is allowed