Site.checkSubscribe (usr, level)
function checks if user is allowed to sign up

  • Parameter Obj:
    Userobject
  • Parameter Int:
    Permission-Level
  • Returns
    String Reason for denial (or null if allowed)
Sourcecode in Site/securityFunctions.js:
1:   function checkSubscribe(usr, level) {
2:      if (level != null)
3:         throw new Exception("subscriptionExist");
4:      else if (!this.online)
5:         throw new DenyException("siteView");
6:      return;
7:   }