core/src/main/java/com/orientechnologies/orient/core/metadata/security/OUser.java
public boolean isRuleDefined(final ORule.ResourceGeneric resourceGeneric, String resourceSpecific) {
    for (ORole r : roles)
      if (r == null)
        OLogManager.instance()
            .warn(this, "User '%s' has a null role, bypass it. Consider to fix this user roles before to continue", getName());
      else if (r.hasRule(resourceGeneric, resourceSpecific))
        return true;

    return false;
  }
public boolean isRuleDefined(final ORule.ResourceGeneric resourceGeneric, String resourceSpecific) {
    for (ORole r : roles)
      if (r == null)
        OLogManager.instance()
            .warn(this, "User '%s' has a null role, bypass it. Consider to fix this user roles before to continue", getName());
      else if (r.hasRule(resourceGeneric, resourceSpecific))
        return true;

    return false;
  }
public boolean isRuleDefined ( final ORule . ResourceGeneric resourceGeneric , String resourceSpecific ) { for ( ORole r : roles ) if ( r == null ) OLogManager . instance ( ) . warn ( this , "User '%s' has a null role, bypass it. Consider to fix this user roles before to continue" , getName ( ) ) ; else if ( r . hasRule ( resourceGeneric , resourceSpecific ) ) return true ; return false ; }
Checks if a rule was defined for the user.

@return True is a rule is defined, otherwise false
Checks if a rule was defined for the user .