diff --git a/cookbook/securing-your-application.rst b/cookbook/securing-your-application.rst index 13f1bf80..eaa96af2 100644 --- a/cookbook/securing-your-application.rst +++ b/cookbook/securing-your-application.rst @@ -178,7 +178,7 @@ needs some updating. You can add the permission tab as shown below: ->createFormViewBuilder('sulu_example.edit_form.permissions', '/permissions') ->setResourceKey('permissions') ->setFormKey('permission_details') - ->setRequestParameters(['resourceKey' => 'example']) + ->addRequestParameters(['resourceKey' => 'example']) ->setTabCondition('_permissions.security') ->setTabTitle('sulu_security.permissions') ->addToolbarActions([new ToolbarAction('sulu_admin.save')]) @@ -187,7 +187,7 @@ needs some updating. You can add the permission tab as shown below: } } -The important option here is set in the ``setRequestParameters`` call, which +The important option here is set in the ``addRequestParameters`` call, which defines for which resource this permission form is used. In order for that to work the relation between the ``resourceKey`` and the security context and the security class has to be configured: