PHPackages                             niclasleonbock/permissioncontroller - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. niclasleonbock/permissioncontroller

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

niclasleonbock/permissioncontroller
===================================

Extended permissions for backend controllers in OctoberCMS.

115PHP

Since Jun 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/niclasleonbock/permissioncontroller)[ Packagist](https://packagist.org/packages/niclasleonbock/permissioncontroller)[ RSS](/packages/niclasleonbock-permissioncontroller/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Permission Controller
=====================

[](#permission-controller)

This library adds extended permission support to controllers in OctoberCMS. It is built on top of the default `$requiredPermissions` property but extends it to be more powerful by adding the possibilty to define different permissions for different actions.

> **Hint:** Due to the way Controller Behaviors work this is a class (and not a Behavior) you need to extend your controllers from.

### Example

[](#example)

This will check for the required permissions depending on the action.

```
