Fix WCF/Permission#addObject (#2073)
authorFabii547 <Fabii547@users.noreply.github.com>
Thu, 4 Aug 2016 15:57:45 +0000 (17:57 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 4 Aug 2016 15:57:45 +0000 (17:57 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Permission.js

index 577babff4888233d5193175267fa98c9e6826325..9fbc322767c08cc98b76bc21808026df714c3f25 100644 (file)
@@ -37,7 +37,7 @@ define(['Dictionary'], function(Dictionary) {
                addObject: function(object) {
                        for (var key in object) {
                                if (objOwns(object, key)) {
-                                       this.addPermission(key, object[key]);
+                                       this.add(key, object[key]);
                                }
                        }
                },