Skip to content
Snippets Groups Projects
Verified Commit 3c987784 authored by David Gunnarsson's avatar David Gunnarsson
Browse files

Move forms to fabric description

parent bc353f68
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,6 @@ Avo.configure do |config| ...@@ -177,7 +177,6 @@ Avo.configure do |config|
section "Object Data" do section "Object Data" do
resource :analysis_methods, visible: -> { authorize current_user, AnalysisMethod, "index?", raise_exception: false } resource :analysis_methods, visible: -> { authorize current_user, AnalysisMethod, "index?", raise_exception: false }
resource :fabric_codes, visible: -> { authorize current_user, FabricCode, "index?", raise_exception: false } resource :fabric_codes, visible: -> { authorize current_user, FabricCode, "index?", raise_exception: false }
resource :forms, visible: -> { authorize current_user, Form, "index?", raise_exception: false }
resource :fragmentations, visible: -> { authorize current_user, Fragmentation, "index?", raise_exception: false } resource :fragmentations, visible: -> { authorize current_user, Fragmentation, "index?", raise_exception: false }
resource :literature, visible: -> { authorize current_user, Literature, "index?", raise_exception: false } resource :literature, visible: -> { authorize current_user, Literature, "index?", raise_exception: false }
resource :vessel_form_types, visible: -> { authorize current_user, VesselFormType, "index?", raise_exception: false } resource :vessel_form_types, visible: -> { authorize current_user, VesselFormType, "index?", raise_exception: false }
...@@ -187,6 +186,7 @@ Avo.configure do |config| ...@@ -187,6 +186,7 @@ Avo.configure do |config|
# TODO: in a later step: all should get no-delete, no-edit # TODO: in a later step: all should get no-delete, no-edit
section "Fabric Description" do section "Fabric Description" do
resource :colours, visible: -> { authorize current_user, Colour, "index?", raise_exception: false } resource :colours, visible: -> { authorize current_user, Colour, "index?", raise_exception: false }
resource :forms, visible: -> { authorize current_user, Form, "index?", raise_exception: false }
resource :frequencies, visible: -> { authorize current_user, Frequency, "index?", raise_exception: false } resource :frequencies, visible: -> { authorize current_user, Frequency, "index?", raise_exception: false }
resource :hardnesses, visible: -> { authorize current_user, Hardness, "index?", raise_exception: false } resource :hardnesses, visible: -> { authorize current_user, Hardness, "index?", raise_exception: false }
resource :sortings, visible: -> { authorize current_user, Sorting, "index?", raise_exception: false } resource :sortings, visible: -> { authorize current_user, Sorting, "index?", raise_exception: false }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment