Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/server/src/permission/resolvers/dataset.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class DatasetPermissionResolver {
const hasPermission = await this.enforcer.enforce(
requestingUser.user_id,
DatasetPermissions.GRANT_ACCESS,
dataset._id
dataset._id.toString()
);
if (!hasPermission) {
throw new UnauthorizedException('Requesting user does not have permission to manage dataset permissions');
Expand All @@ -52,7 +52,7 @@ export class DatasetPermissionResolver {
const hasPermission = await this.enforcer.enforce(
requestingUser.user_id,
DatasetPermissions.GRANT_ACCESS,
project._id
project._id.toString()
);
if (!hasPermission) {
throw new UnauthorizedException('Requesting user does not have permission to manage dataset permissions');
Expand Down