From 2ec45b0fb36e6e48b3fb30b6918935ba0bba81ac Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Thu, 28 Nov 2013 08:08:35 -0800 Subject: [PATCH] Fix the callback --- lib/models/acl.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/models/acl.js b/lib/models/acl.js index 6b0562d8..c62ac0fe 100644 --- a/lib/models/acl.js +++ b/lib/models/acl.js @@ -269,6 +269,11 @@ Scope.checkPermission = function (scope, model, property, accessType, callback) /** * Check if the request has the permission to access * @param {Object} context + * @property {Object[]} principals An array of principals + * @property {String|Model} model The model name or model class + * @property {*} id The model instance id + * @property {String} property The property/method/relation name + * @property {String} accessType The access type * @param {Function} callback */ ACL.checkAccess = function (context, callback) {