X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/82b46502f25b6992c93bfe7689acc095aa447e5b..30d63b582ed093d235ae4a9efdeda5de1d4e2f24:/apps/workbench/app/models/arvados_base.rb diff --git a/apps/workbench/app/models/arvados_base.rb b/apps/workbench/app/models/arvados_base.rb index 2c2963ca59..2eb0b62577 100644 --- a/apps/workbench/app/models/arvados_base.rb +++ b/apps/workbench/app/models/arvados_base.rb @@ -301,13 +301,15 @@ class ArvadosBase < ActiveRecord::Base (writable_by.include? current_user.uuid rescue false))) end - def attribute_editable?(attr) + def attribute_editable?(attr, ever=nil) if "created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at".index(attr.to_s) false elsif not (current_user.andand.is_active) false elsif attr == 'uuid' current_user.is_admin + elsif ever + true else editable? end