Пример #1
0
 /**
  * Checks if editor restriction matches
  *
  * @return bool
  */
 protected function _matchesEditorRestriction()
 {
     $editorRestriction = $this->getEditorRestriction();
     if (empty($editorRestriction) or IfwPsn_Wp_Proxy_User::isCurrentUserMemberOfRoles($editorRestriction)) {
         return true;
     }
     return false;
 }