<% Site.switch %>
catch some special needs before passing the macro call up to the HopObject prototype FIXME: this is probably to hackish...

Sourcecode in Site/macros.js:
1:   function switch_macro(param) {
2:      if (param.name == "userMayEdit") {
3:         try {
4:            // FIXME: unfortunately, the check* methods are
5:            // not very handy, anymore... (need try/catch block)
6:            this.checkEdit(session.user, req.data.memberlevel);
7:            res.write(param.on);
8:         } catch (err) {
9:            res.write(param.off);
10:           return;
11:        }
12:     } else
13:        HopObject.switch_macro.apply(this, [param]);
14:     return;
15:  }