Skip to content

Commit

Permalink
Being dataset uploader does not make editable true (#7200)
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth authored Jul 18, 2023
1 parent 7749e41 commit 6972016
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- The proofreading tool is always visible now (even when disabled). [#7174](https://github.com/scalableminds/webknossos/pull/7174)
- Optimized processing of parallel requests (new thread pool configuration, asynchronous FossilDB client), improving performance and reducing idle waiting. [#7139](https://github.com/scalableminds/webknossos/pull/7139)
- Renamed "open" tasks to "pending" and slightly redesigned the available task assignment view for clarity. [#7187](https://github.com/scalableminds/webknossos/pull/7187)
- Being the uploader of a dataset no longer grants edit permissions on that dataset. [#7200](https://github.com/scalableminds/webknossos/pull/7200)

### Fixed
- Fixed rare rendering bug at viewport edge for anisotropic datasets. [#7163](https://github.com/scalableminds/webknossos/pull/7163)
Expand Down
1 change: 0 additions & 1 deletion app/models/binary/DataSet.scala
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ class DataSetDAO @Inject()(sqlClient: SqlClient,
(
(u.isAdmin AND u._organization = d._organization) OR
u.isDatasetManager OR
d._uploader = u._id OR
d._id IN ( -- team manager of team that has access to the dataset
SELECT _dataSet
FROM webknossos.dataSet_allowedTeams dt
Expand Down
1 change: 0 additions & 1 deletion app/models/binary/DataSetService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ class DataSetService @Inject()(organizationDAO: OrganizationDAO,
} yield
(user.isAdminOf(dataSet._organization)
|| user.isDatasetManager
|| dataSet._uploader.contains(user._id)
|| teamManagerMemberships.map(_.teamId).intersect(dataSetAllowedTeams).nonEmpty)
case _ => Fox.successful(false)
}
Expand Down

0 comments on commit 6972016

Please sign in to comment.