(js) Only select checkboxes in ACL editor

This commit is contained in:
Francis Lachapelle
2016-06-20 16:08:41 -04:00
parent 6538f6d047
commit 6b5571ea2c

View File

@@ -137,7 +137,8 @@
*/
Acl.prototype.$selectAllRights = function(user) {
_.forEach(user.rights, function(value, right) {
user.rights[right] = 1;
if (angular.isNumber(user.rights[right]))
user.rights[right] = 1;
});
};