framework/rbac/DbManager.php
public function getPermissionsByUser($userId)
    {
        if ($this->isEmptyUserId($userId)) {
            return [];
        }

        $directPermission = $this->getDirectPermissionsByUser($userId);
        $inheritedPermission = $this->getInheritedPermissionsByUser($userId);

        return array_merge($directPermission, $inheritedPermission);
    }
public function getPermissionsByUser($userId)
    {
        if ($this->isEmptyUserId($userId)) {
            return [];
        }

        $directPermission = $this->getDirectPermissionsByUser($userId);
        $inheritedPermission = $this->getInheritedPermissionsByUser($userId);

        return array_merge($directPermission, $inheritedPermission);
    }
public function getPermissionsByUser ( $ userId ) { if ( $ this -> isEmptyUserId ( $ userId ) ) { return [ ] ; } $ directPermission = $ this -> getDirectPermissionsByUser ( $ userId ) ; $ inheritedPermission = $ this -> getInheritedPermissionsByUser ( $ userId ) ; return array_merge ( $ directPermission , $ inheritedPermission ) ; }
{@inheritdoc}
{