Skip to content

Commit 21e8638

Browse files
Vinnlmegoth
authored andcommitted
Revert "Remove code that's unused according to @timbl"
This reverts commit 5afb141.
1 parent 58a5a66 commit 21e8638

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/acl-control.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ UI.aclControl.ACLControlBox5 = function (subject, dom, noun, kb, callback) {
9494
// There are two of these in all iff the defaults are separate
9595
//
9696
function ACLControlEditable (box, doc, aclDoc, kb, options) {
97+
var defaultOrMain = options.doingDefaults ? 'default' : 'main'
9798
options = options || {}
99+
var ac = UI.acl.readACL(doc, aclDoc, kb, options.doingDefaults) // Note kb might not be normal one
98100
var byCombo
101+
box[defaultOrMain] = byCombo = UI.acl.ACLbyCombination(ac)
99102
var kToCombo = function (k) {
100103
var y = ['Read', 'Append', 'Write', 'Control']
101104
var combo = []

0 commit comments

Comments
 (0)