diff --git a/resources/views/federations/edit.blade.php b/resources/views/federations/edit.blade.php index f3c3272..3e9a117 100644 --- a/resources/views/federations/edit.blade.php +++ b/resources/views/federations/edit.blade.php @@ -35,42 +35,48 @@ - - - type="text" name="xml_id" id="xml_id" maxlength="32" - placeholder="{{ __('federations.name_placeholder') }}" - value="{{ $federation->xml_id }}" required - - + @can('do-everything') + + + type="text" name="xml_id" id="xml_id" maxlength="32" + placeholder="{{ __('federations.name_placeholder') }}" + value="{{ $federation->xml_id }}" required + - - - type="text" name="xml_name" id="xml_name" maxlength="255" - placeholder="{{ __('federations.description_placeholder') }}" - value="{{ $federation->xml_name }}" required - + - + + + type="text" name="xml_name" id="xml_name" maxlength="255" + placeholder="{{ __('federations.description_placeholder') }}" + value="{{ $federation->xml_name }}" required + - - + + + - + + + + @endcan + + @endsection diff --git a/tests/Feature/Http/Controllers/FederationControllerTest.php b/tests/Feature/Http/Controllers/FederationControllerTest.php index c4c0a8c..cb59058 100644 --- a/tests/Feature/Http/Controllers/FederationControllerTest.php +++ b/tests/Feature/Http/Controllers/FederationControllerTest.php @@ -363,9 +363,7 @@ public function a_user_with_operator_permission_can_see_federations_edit_page() ->get(route('federations.edit', $federation)) ->assertSeeText(__('federations.edit', ['name' => $federation->name])) ->assertSee($federation->name) - ->assertSee($federation->description) - ->assertSee($federation->xml_id) - ->assertSee($federation->xml_name); + ->assertSee($federation->description); $this->assertEquals(1, Federation::count()); $this->assertEquals(route('federations.edit', $federation), url()->current());