You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.
I already have existing users, so I just added roles from the podium forum to them.
bizley\podium\models\User::can function is working wrong.
publicstaticfunctioncan($permissionName, $params = [], $allowCaching = true)
{
if (Podium::getInstance()->userComponent === true) {
returnPodium::getInstance()->user->can($permissionName, $params, $allowCaching);
}
if (!Podium::getInstance()->user->isGuest) {
$user = static::findMe();
if (empty($user)) {
returnfalse;
}
if ($allowCaching && empty($params) && isset($user->_access[$permissionName])) {
return$user->_access[$permissionName];
}
// in this place we must check access by inherited_id
-> $access = Podium::getInstance()->rbac->checkAccess($user->id, $permissionName, $params);
if ($allowCaching && empty($params)) {
$user->_access[$permissionName] = $access;
}
return$access;
}
returnfalse;
}
The text was updated successfully, but these errors were encountered:
eLFuvo
changed the title
User::can working wrong when authManager is external (yii2) component
User::can working wrong when authManager is external (default yii2) component
May 26, 2017
I have configure external (default yii2) authManager component for podium forum as:
I already have existing users, so I just added roles from the podium forum to them.
bizley\podium\models\User::can function is working wrong.
The text was updated successfully, but these errors were encountered: