Fix a wrong _.all to _.any

This commit is contained in:
Marc Hannappel committed 2017-11-02 09:21:00 +01:00
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