Skip to content

Commit 6f425ed

Browse files
committed
Fix flags in onAuthorize.
1 parent 954a87f commit 6f425ed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14194,7 +14194,7 @@ function extend_request(PROTO) {
1419414194
F.onAuthorize(req, req.res, req.flags, function(isAuthorized, user) {
1419514195
var hasRoles = length !== req.flags.length;
1419614196
if (hasRoles)
14197-
req.$flags += flags.slice(length).join('');
14197+
req.$flags += req.flags.slice(length).join('');
1419814198
if (typeof(isAuthorized) !== 'boolean') {
1419914199
user = isAuthorized;
1420014200
isAuthorized = !user;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"name": "luoage",
8585
"email": "luoage@msn.cn"
8686
}],
87-
"version": "2.9.0-2",
87+
"version": "2.9.0-4",
8888
"homepage": "http://www.totaljs.com",
8989
"bugs": {
9090
"url": "https://github.com/totaljs/framework/issues",

0 commit comments

Comments
 (0)