code: public boolean checkResource(RequiredOrientResource resource, Action action)
  	{
  		if(!resource.action().equals(action.getName())) return true;
  		OSecurityUser user = OrientDbWebSession.get().getEffectiveUser();
  		if(user==null) return false;
  		int iOperation = OrientPermission.combinedPermission(resource.permissions());
  		ORule.ResourceGeneric value = OSecurityHelper.getResourceGeneric(resource.value());
  		String specific = resource.specific();
  		if(Strings.isEmpty(specific)) specific = null;
  		if(user.checkIfAllowed(value, specific, iOperation)!=null) return true;
  		while(!Strings.isEmpty(specific=Strings.beforeLastPathComponent(specific, '.')))
  		{
  			if(user.checkIfAllowed(value, specific+"."+ODatabaseSecurityResources.ALL, iOperation)!=null) return true;
  		}
  		return false;
  	}
docs: Check that current user has access to mentioned resource
  @param resource {@link RequiredOrientResource} to check
  @param action {@link Action} to check for
  @return true if access is allowed