hasPermission

abstract fun hasPermission(source: S, permission: String): Boolean

Checks whether the source has the given permission.