code: public boolean checkResource(String resource, Action action, OrientPermission[] permissions)
  	{
  		String actionName = action.getName();
  		int actionIndx = resource.indexOf(':');
  		if(actionIndx>0) {
  			if(!(resource.endsWith(actionName) && resource.length()>actionName.length() 
  					&& resource.charAt(resource.length()-actionName.length()-1) == ':')) return true;
  			else resource = resource.substring(0, actionIndx);//Should cut off action
  		} else if(!Component.RENDER.equals(action)) return true; //Default suffix is for render: so other should be skipped
  		
  		OSecurityUser user = OrientDbWebSession.get().getUser();
  		if(user==null) return false;
  		ORule.ResourceGeneric generic = OSecurityHelper.getResourceGeneric(resource);
  		String specific = OSecurityHelper.getResourceSpecific(resource);
  		
  		return user!=null
  				?user.checkIfAllowed(generic, specific, OrientPermission.combinedPermission(permissions))!=null
  				:false;
  	}
docs: Check that current user has access to mentioned resource
  @param resource resource check
  @param action {@link Action} to check for
  @param permissions {@link OrientPermission}s to check
  @return true if access is allowed