Fix the callback

This commit is contained in:
Raymond Feng 2013-11-28 08:08:35 -08:00
parent 23cf373432
commit 2ec45b0fb3
1 changed files with 5 additions and 0 deletions

View File

@ -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) {