+
+ if (data.userUuid.substr(-22) === "-j7d0g-fffffffffffffff") {
+ // If this is for the all users group, we need to create a
+ // permission link as well.
+ l.then(result =>
+ this.linkService.create({
+ tailUuid: data.userUuid,
+ headUuid: result.uuid,
+ linkClass: LinkClass.PERMISSION,
+ name: "can_read"
+ }));
+ }
+
+ return l;