adhocracy3 icon indicating copy to clipboard operation
adhocracy3 copied to clipboard

adhPermissions bindScope doesn't always value importOptions

Open slomo opened this issue 9 years ago • 1 comments

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);

slomo avatar May 11 '16 08:05 slomo

Doesn't seem to bother enough people.

der-john avatar Nov 24 '16 09:11 der-john