Skip to content

Commit 05474eb

Browse files
author
nicola
committed
removing debugging code
1 parent 5b035bb commit 05474eb

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎lib/acl.js‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ ACL.prototype.can = function (user, mode, resource, callback, options) {
8282
accessType, // accessTo or defaultForNew
8383
acl, // The current Acl file!
8484
function (err) {
85-
console.log('current err', err)
8685
return next(!err || err)
8786
}, options)
8887
})
@@ -98,8 +97,6 @@ ACL.prototype.can = function (user, mode, resource, callback, options) {
9897
err = null
9998
}
10099

101-
console.log("error was", err)
102-
103100
if (err) {
104101
debug('Error: ' + err.message)
105102
if (!user || user.length === 0) {
@@ -113,8 +110,6 @@ ACL.prototype.can = function (user, mode, resource, callback, options) {
113110
}
114111
}
115112

116-
console.log("sending out", err)
117-
118113
return callback(err)
119114
})
120115
}
@@ -231,7 +226,6 @@ ACL.prototype.matchAccessType = function matchAccessType (graph, rule, accessTyp
231226
'http://www.w3.org/ns/auth/acl#' + accessType,
232227
undefined)
233228

234-
console.log("matches", matches, rule, accessType, uri)
235229
return matches.some(function(match) {
236230
return S(uri).startsWith(match.object.uri);
237231
})

0 commit comments

Comments
 (0)