Skip to content

Commit

Permalink
[ios] Only save permissions that are expected to be scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed May 27, 2020
1 parent 3ed48ee commit 902ef3f
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -70,7 +70,10 @@ - (void)askForPermissionUsingRequesterClass:(Class)requesterClass
// ask for permission. If granted then save it as scope permission
void (^customOnResults)(NSDictionary *) = ^(NSDictionary *permission){
UM_ENSURE_STRONGIFY(self)
[self.permissionsService savePermission:permission ofType:permissionType forExperience:self.experienceId];
// if permission should be scoped save it
if ([self shouldVerifyScopedPermission:permissionType]) {
[self.permissionsService savePermission:permission ofType:permissionType forExperience:self.experienceId];
}
resolve(permission);
};

Expand Down

0 comments on commit 902ef3f

Please sign in to comment.