protected function hasWriteAccess($resourceId)
    {
        $user = $this->getSession()->getUser();
        return (new DataAccessControl())->hasPrivileges($user, array($resourceId => 'WRITE'));
    }