mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 19:48:18 +08:00
Fixed permission error when moving a freshly cloned task.
This commit is contained in:
parent
68206cb591
commit
946f516171
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class CanvasController < ApplicationController
|
|||
unless to_move.is_a?(Hash) &&
|
||||
to_move.keys.all? do |id|
|
||||
id.is_a?(String) &&
|
||||
can_manage_module?(MyModule.find_by_id(id))
|
||||
(!is_int?(id) || can_manage_module?(MyModule.find_by_id(id)))
|
||||
end &&
|
||||
to_move.values.all? do |exp_id|
|
||||
exp_id.is_a?(String) &&
|
||||
|
|
Loading…
Reference in a new issue