Fix a wrong _.all to _.any
This commit is contained in:
1 parent
d45d2f5123
commit
e0cd48df92
1 file changed
+1
-1
@@ -229,7 +229,7 @@ $(function() {
|
||||
return false;
|
||||
}
|
||||
|
||||
return _.all(permission, function(need) { return _.has(userneeds, need.method) && _.contains(userneeds[need.method], need.value); });
|
||||
return _.any(permission, function(need) { return _.has(userneeds, need.method) && _.contains(userneeds[need.method], need.value); });
|
||||
};
|
||||
|
||||
// Knockout wrapper for the hasPermission function
|
||||
|
||||
Reference in new issue
Block a user