mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 20:23:16 +08:00
Merge pull request #7955 from aignatov-bio/ai-sci-11149-fix-moving-location-to-root
Fix moving location to root [SCI-11149]
This commit is contained in:
commit
8aad40ccbe
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class StorageLocationsController < ApplicationController
|
|||
StorageLocation.find(move_params[:destination_storage_location_id])
|
||||
end
|
||||
|
||||
render_403 and return unless can_manage_storage_location?(destination_storage_location)
|
||||
render_403 and return if destination_storage_location && !can_manage_storage_location?(destination_storage_location)
|
||||
|
||||
@storage_location.update!(parent: destination_storage_location)
|
||||
|
||||
|
|
Loading…
Reference in a new issue