revokePermissions
Returns a new Feature with the specified permissions revoked.
This is a convenience vararg overload of revokePermissions for revoking permissions inline. Permissions that don't exist are silently ignored.
Example:
val updated = feature.revokePermissions("BETA_TESTER", "DEPRECATED_ROLE")Content copied to clipboard
Return
a new Feature with the permissions removed
Parameters
permissions
the permissions to revoke
See also
for the Collection version
Returns a new Feature with the specified permissions revoked.
Removes the provided permissions from the feature's permission set. Permissions that don't exist are silently ignored. This maintains immutability by returning a new instance.
Example:
val permissionsToRevoke = setOf("GUEST", "TRIAL")
val updated = feature.revokePermissions(permissionsToRevoke)Content copied to clipboard
Return
a new Feature with the permissions removed
Parameters
permissions
the collection of permissions to revoke