Skip to content

Commit

Permalink
fix: Update application permission for forking functionality, to enab…
Browse files Browse the repository at this point in the history
…le templates forking (appsmithorg#8007)
  • Loading branch information
abhvsn authored Sep 30, 2021
1 parent 4c1ed4a commit 35442e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ApplicationForkingService {
private final AnalyticsService analyticsService;

public Mono<Application> forkApplicationToOrganization(String srcApplicationId, String targetOrganizationId) {
final Mono<Application> sourceApplicationMono = applicationService.findById(srcApplicationId, AclPermission.MANAGE_APPLICATIONS)
final Mono<Application> sourceApplicationMono = applicationService.findById(srcApplicationId, AclPermission.READ_APPLICATIONS)
.switchIfEmpty(Mono.error(new AppsmithException(AppsmithError.ACL_NO_RESOURCE_FOUND, "application", srcApplicationId)));

final Mono<Organization> targetOrganizationMono = organizationService.findById(targetOrganizationId, AclPermission.ORGANIZATION_MANAGE_APPLICATIONS)
Expand Down

0 comments on commit 35442e2

Please sign in to comment.