From bee0f5ba672cc6e9902437bd7653268432bb439e Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 12 Jan 2018 11:35:44 +0100 Subject: [PATCH] You can pass an array with permissions to PermissionMaanger->can(). But string[] is the wrong annotation. --- protected/humhub/modules/user/components/PermissionManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protected/humhub/modules/user/components/PermissionManager.php b/protected/humhub/modules/user/components/PermissionManager.php index 9eecb99960..8069513793 100644 --- a/protected/humhub/modules/user/components/PermissionManager.php +++ b/protected/humhub/modules/user/components/PermissionManager.php @@ -44,10 +44,11 @@ class PermissionManager extends \yii\base\Component * If $params['strict'] is set to true and a $permission array is given all given permissions * have to be granted otherwise (default) only one permission test has to pass. * - * @param string|string[]|BasePermission $permission + * @param string|array|BasePermission $permission * @param array $params * @param boolean $allowCaching * @return boolean + * @throws \yii\base\InvalidConfigException */ public function can($permission, $params = [], $allowCaching = true) {