projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eafbd28
)
18339: Fix scheduled deletion of non-project group.
author
Tom Clegg <tom@curii.com>
Thu, 18 Nov 2021 16:50:58 +0000
(11:50 -0500)
committer
Tom Clegg <tom@curii.com>
Thu, 18 Nov 2021 16:50:58 +0000
(11:50 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
services/api/app/controllers/sys_controller.rb
patch
|
blob
|
history
diff --git
a/services/api/app/controllers/sys_controller.rb
b/services/api/app/controllers/sys_controller.rb
index 3d434f2d6943387cb0cec6bd8e80c0077c928705..a67b124bd09ffc92834d3bd66a508ef96ffa6dc0 100644
(file)
--- a/
services/api/app/controllers/sys_controller.rb
+++ b/
services/api/app/controllers/sys_controller.rb
@@
-38,8
+38,8
@@
class SysController < ApplicationController
def delete_project_and_contents(p_uuid)
p = Group.find_by_uuid(p_uuid)
- if !p
|| p.group_class != 'project'
- raise "can't sweep group '#{p_uuid}', it may not exist
or not be a project
"
+ if !p
+ raise "can't sweep group '#{p_uuid}', it may not exist"
end
# First delete sub projects
Group.where({group_class: 'project', owner_uuid: p_uuid}).each do |sub_project|