[arvados] updated: 2.6.0-95-g385d9ac5f
git repository hosting
git at public.arvados.org
Wed May 3 02:10:14 UTC 2023
Summary of changes:
services/api/app/controllers/application_controller.rb | 1 +
services/api/app/models/group.rb | 1 +
2 files changed, 2 insertions(+)
via 385d9ac5f47bec5c5a5fc9770c74b1a7d8dd2974 (commit)
from f4e3341d2857114e8c3ea0a7941ff8429491dd59 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 385d9ac5f47bec5c5a5fc9770c74b1a7d8dd2974
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue May 2 22:09:46 2023 -0400
20470: Handle nil selection, selecting on writable_by
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb
index ffe55b3c6..1fbd65fd8 100644
--- a/services/api/app/controllers/application_controller.rb
+++ b/services/api/app/controllers/application_controller.rb
@@ -229,6 +229,7 @@ class ApplicationController < ActionController::Base
end
def select_for_klass sel, model_class
+ return nil if sel.nil?
# Filter the select fields to only the ones that apply to the
# given class.
sel.map do |column|
diff --git a/services/api/app/models/group.rb b/services/api/app/models/group.rb
index 85855fda9..aa3a19bf8 100644
--- a/services/api/app/models/group.rb
+++ b/services/api/app/models/group.rb
@@ -54,6 +54,7 @@ class Group < ArvadosModel
super.merge(
'can_write' => ['owner_uuid', 'uuid'],
'can_manage' => ['owner_uuid', 'uuid'],
+ 'writable_by' => ['owner_uuid', 'uuid'],
)
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list