package org.rundeck.app.acl;

public interface AppACLContext {
    /**
     * @return true if system level ACL
     */
    boolean isSystem();

    /**
     * @return project name, if project level ACL
     */
    String getProject();

    static AppACLContext system() {
        return new AppACLContextImpl(true, null);
    }

    static AppACLContext project(String project) {
        return new AppACLContextImpl(false, project);
    }
}

@@ -369,24 +369,135 @@
  project) %7B%0A
+        if(null==project)%7B%0A            throw new IllegalArgumentException(%22project cannot be null%22);%0A        %7D%0A
         retu

check null argument