-
- // Construct a new ACL. We need this everytime the 'event-edit-form' is loaded
- // without page reloading (e.g. closing an old modal and open a new modal).
- // Otherwise we wouldn't get the ACL data.
- /// @todo: Try to implement some kind of ACL reloading in acl.js.
- if (typeof acl !== "undefined") {
- var eventPerms = document.getElementById('event-edit-form');
-
- acl = new ACL(
- baseurl + "/acl",
- [
- eventPerms.dataset.allow_cid,
- eventPerms.dataset.allow_gid,
- eventPerms.dataset.deny_cid,
- eventPerms.dataset.deny_gid
- ]
- );
- }
-