Skip to content

Commit 1bf0647

Browse files
committed
Adding comment about the part that is hacky
1 parent e75af0b commit 1bf0647

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/acl-control.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
612612
var q = str.indexOf('//')
613613
var targetDocDir = ((q >= 0 && p < q + 2) || p < 0) ? null : str.slice(0, p + 1)
614614

615+
// @@ TODO: The methods used for targetIsStorage are HACKs - it should not be relied upon, and work is
616+
// @@ underway to standardize a behavior that does not rely upon this hack
615617
// eslint-disable-next-line no-undef
616618
const targetIsStorage = kb.holds(targetDoc, UI.ns.rdf('type'), UI.ns.space('Storage'), targetACLDoc) || (location && location.pathname === '/')
617619

0 commit comments

Comments
 (0)