src/Rbac/DbManager.php
public function revokeAll($userId)
    {
        if ($this->isEmptyUserId($userId)) {
            return reject(new Error("Empty user ID"));
        }

        unset($this->_checkAccessAssignments[(string)$userId]);
        return $this->db->createCommand()
            ->delete($this->assignmentTable, ['user_id' => (string)$userId])
            ->execute()
            ->then(function($count = 0) {
                return $count > 0;
            });
    }
public function revokeAll($userId)
    {
        if ($this->isEmptyUserId($userId)) {
            return reject(new Error("Empty user ID"));
        }

        unset($this->_checkAccessAssignments[(string)$userId]);
        return $this->db->createCommand()
            ->delete($this->assignmentTable, ['user_id' => (string)$userId])
            ->execute()
            ->then(function($count = 0) {
                return $count > 0;
            });
    }
{@inheritdoc}