adhocracy3
adhocracy3 copied to clipboard
adhPermissions bindScope doesn't always value importOptions
If adhPermissions bind scope is used with { importOptions: false } it will update the the scope twice. Once with "normal" options ({ POST: true, PUT: false .... }) and once with the raw options.
I encountered this while working on Badge.ts in the following snippet:
adhPermissions.bindScope(scope, scope.poolPath, "rawOptions", {importOptions: false});
scope.$watch("rawOptions", getAssignableBadges);
Doesn't seem to bother enough people.