protected function hasWriteAccess($resourceId)
    {
        $user = $this->getSession()->getUser();
        return (new DataAccessControl())->hasPrivileges($user, array($resourceId => 'WRITE'));
    }
protected function hasWriteAccess($resourceId)
    {
        $user = $this->getSession()->getUser();
        return (new DataAccessControl())->hasPrivileges($user, array($resourceId => 'WRITE'));
    }
protected function hasWriteAccess ( $ resourceId ) { $ user = $ this -> getSession ( ) -> getUser ( ) ; return ( new DataAccessControl ( ) ) -> hasPrivileges ( $ user , array ( $ resourceId => 'WRITE' ) ) ; }
Test whenever the current user has "WRITE" access to the specified id

@param string $resourceId
@return boolean
Test whenever the current user has WRITE access to the specified id