Skip to content

Commit

Permalink
Remove workspace READ check
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbst-broad committed Feb 9, 2024
1 parent 8c96e08 commit a0a5946
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ public Instant checkPermission(String accessToken) {
var resourceApi = new ResourcesApi(apiClient);

// check that user has access to workspace
boolean workspaceAccess =
resourceApi.resourcePermissionV2("workspace", workspaceId.toString(), "read");
if (!workspaceAccess) {
logger.error("Unauthorized request. User doesn't have access to workspace.");
return Instant.EPOCH;
}
// boolean workspaceAccess =
// resourceApi.resourcePermissionV2("workspace", workspaceId.toString(), "read");
// if (!workspaceAccess) {
// logger.error("Unauthorized request. User doesn't have access to workspace.");
// return Instant.EPOCH;
// }

var res = resourceApi.resourcePermissionV2(samResourceType, samResourceId, samAction);
if (res) return oauthInfo.expiresAt().get();
Expand Down

0 comments on commit a0a5946

Please sign in to comment.