summaryrefslogtreecommitdiff
path: root/core/classes/authentication
diff options
context:
space:
mode:
Diffstat (limited to 'core/classes/authentication')
-rw-r--r--core/classes/authentication/Core/UserManager.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/classes/authentication/Core/UserManager.php b/core/classes/authentication/Core/UserManager.php
index 54cd2cb..4d9da7b 100644
--- a/core/classes/authentication/Core/UserManager.php
+++ b/core/classes/authentication/Core/UserManager.php
@@ -42,6 +42,8 @@ class UserManager implements UserManagerInterface
/** hasUserToken()
* == is user loged in
*
+ * @param void
+ * @return boolean
*/
public function hasUserToken(): bool
{
@@ -55,9 +57,12 @@ class UserManager implements UserManagerInterface
* checks if user is granded some role(s)
* from the array of roles that are passed
*
- * ex. $token->isGranted(['editor', 'designer']) ...
+ * @example:
+ * $token->isGranted(['editor', 'designer']) ...
* returns true if the user is editor or designer (or both)
*
+ * @param $roles (array) : array of (int) role IDs
+ * @return boolean
*/
public function isGranted(array $roles): bool
{