hasPermission

open fun hasPermission(permission: String): Boolean

Checks if this subject has the given permission.

A subject having a permission is defined as the subject both possessing the permission, and it being set to TriState.TRUE.

Return

true if this subject has the permission, false otherwise

Parameters

permission

the permission