Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don't log hashes (DEV-1442) #2265

Merged
merged 1 commit into from Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -598,8 +598,6 @@ class OntologyResponderV2(responderData: ResponderData) extends Responder(respon
if (
!(requestingUser.permissions.isProjectAdmin(projectIri.toString) || requestingUser.permissions.isSystemAdmin)
) {
// println(s"requestingUser: $requestingUser")
// println(s"requestingUser.permissionData.isProjectAdmin(<${projectIri.toString}>): ${requestingUser.permissionData.isProjectAdmin(projectIri.toString)}")
throw ForbiddenException(
s"A new ontology in the project ${createOntologyRequest.projectIri} can only be created by an admin of that project, or by a system admin."
)
Expand Down
Expand Up @@ -39,7 +39,7 @@ class FilesRouteADM(routeData: KnoraRouteData) extends KnoraRoute(routeData) wit
projectIDAndFile(1),
throw BadRequestException(s"Invalid filename: '${projectIDAndFile(1)}'")
)
_ = log.info(s"/admin/files route called for filename $filename by user: $requestingUser")
_ = log.info(s"/admin/files route called for filename $filename by user: ${requestingUser.id}")
} yield SipiFileInfoGetRequestADM(
projectID = projectID,
filename = filename,
Expand Down