public function AccessTokenInterface::hasPermission in Simple OAuth (OAuth2) & OpenID Connect 8
Checks if the current token allows the provided permission.
Parameters
string $permission: The requested permission.
Return value
bool TRUE if the permission is included. FALSE otherwise.
1 method overrides AccessTokenInterface::hasPermission()
- AccessToken::hasPermission in src/
Entity/ AccessToken.php - Checks if the current token allows the provided permission.
File
- src/
AccessTokenInterface.php, line 34
Class
- AccessTokenInterface
- Provides an interface for defining Access Token entities.
Namespace
Drupal\simple_oauthCode
public function hasPermission($permission);