File tree Expand file tree Collapse file tree
docs/en/tutorials-and-examples/cms Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ description: "Implement authorization in CakePHP CMS with policy classes. Contro
77
88With users now able to login to our CMS, we want to apply authorization rules
99to ensure that each user only edits the posts they own. We'll use the
10- [ authorization plugin] ( https://book.cakephp.org/authorization/2 ) to do this.
10+ [ authorization plugin] ( https://book.cakephp.org/authorization/3 ) to do this.
1111
1212## Installing Authorization Plugin
1313
@@ -40,9 +40,11 @@ use Authorization\Policy\OrmResolver;
4040
4141Add the ` AuthorizationServiceProviderInterface ` to the implemented interfaces on your application:
4242
43- class Application extends BaseApplication
44- implements AuthenticationServiceProviderInterface,
45- AuthorizationServiceProviderInterface
43+ ``` php {2-3}
44+ class Application extends BaseApplication
45+ implements AuthenticationServiceProviderInterface,
46+ AuthorizationServiceProviderInterface
47+ ```
4648
4749Then add the following to your ` middleware() ` method:
4850
You can’t perform that action at this time.
0 commit comments