PHPackages                             abwebdevelopers/oc-user-permissions-plugin - 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. abwebdevelopers/oc-user-permissions-plugin

ActiveOctober-plugin[Authentication &amp; Authorization](/categories/authentication)

abwebdevelopers/oc-user-permissions-plugin
==========================================

User Permissions for October CMS

1.0.0(5y ago)1281MITPHPPHP &gt;=7.0

Since Mar 8Pushed 5y agoCompare

[ Source](https://github.com/abwebdevelopers/user-permissions-plugin)[ Packagist](https://packagist.org/packages/abwebdevelopers/oc-user-permissions-plugin)[ RSS](/packages/abwebdevelopers-oc-user-permissions-plugin/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

UserPermissions Plugin
======================

[](#userpermissions-plugin)

Front-end user permissions management.

Requirements
------------

[](#requirements)

This plugin requires the [RainLab.User](https://github.com/rainlab/user-plugin/) Plugin.

Available Configurations
------------------------

[](#available-configurations)

```
{plugin}/config/config.php
[
    /*
    * This lets you configure your own alias to use instead of the default
    * "hasUserPermission" method name.
    */
    'hasUserPermissionAlias' => 'hasUserPermissionAlias'
]

```

Creating Permissions
--------------------

[](#creating-permissions)

In the backend, navigate to RainLab "Users" menu, on the left side there should
be a open lock icon with the name "Permissions". Click this and it will take you
to the list of permission.

- Click "New Permission" to get to a form where you can enter information about a new
    permission you would like to create (dont forget to save).
- Click on a permission in the list to manage existing permissions.

Managing User Permissions
-------------------------

[](#managing-user-permissions)

In the backend, navigate to RainLab "Users" menu, either create a new user by
clicking "New User" and navigate to the "Permissions" tab of the newly opened form.
Here you can choose between "ALLOW", "INHERIT" or "DENY" for all existing permissions.

- "ALLOW" will grant the user the permission, this takes precedence over group permissions.
- "INHERIT" will grant the user the permission only if they also belong to a group which
    also has the permission set to allow (if they are checked).
- "DENY" will NOT grant the user the permission, this takes precedence over group
    permissions meaning that even if the user belongs to a group with the permission
    allowed the user will not have the permission.

The same tab is available for all existing users, simply click the user you want
to manage in the user list and navigate to the "Permissions" tab.

Managing Group Permissions
--------------------------

[](#managing-group-permissions)

In the backend, navigate to RainLab "Users" menu, either create a new group by
clicking "User Groups" and then on "New Group" or click the group you want to edit.
Navigate to the "Permissions" tab and click (check) all the permissions you want this group to have.

Using UserPermissions in your own development
---------------------------------------------

[](#using-userpermissions-in-your-own-development)

Available UserPermissions functions:

```
/**
 * Check if user has supplied permissions
 *
 * @param mixed $permission Single string, single integer or Array structure with strings and/or integers
 * @param string $match How to match the permission(s), "all" or "one", defaults to "all"
 *
 * @return boolean Returns if user has supplied permission(s)
 */
function hasUserPermission($permission, $match = 'all') {

}

```

Since every user model is extended with the same function it is available in both twig and backend php i.e.

**For Twig**

```
{% if user.hasUserPermission([1, 2, "can-eat-cake"]) %}
    This user has all above permissions
{% else %}
    This user does not have permission
{% endif %}

{% if user.hasUserPermission([1, 2, "can-eat-cake"], 'one') %}
    This user has one of the above permissions
{% else %}
    This user does not have permission
{% endif %}

```

**For Backend**

```
if($user->hasUserPermission([1, 2, "can-eat-cake"])) {
    // This user has all above permissions
} else {
    // This user does not have permission
}

if($user->hasUserPermission([1, 2, "can-eat-cake"], 'one')) {
    // This user has one of the above permissions
} else {
    // This user does not have permission
}

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1897d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8628eaab5c2f87b2ce79bcb55c7fe2d1377bdd4cf59f4ad2f12a74ec0be4ec8?d=identicon)[abwebdevelopers](/maintainers/abwebdevelopers)

---

Top Contributors

[![joakimbo](https://avatars.githubusercontent.com/u/10329253?v=4)](https://github.com/joakimbo "joakimbo (23 commits)")[![frthjf](https://avatars.githubusercontent.com/u/5411942?v=4)](https://github.com/frthjf "frthjf (1 commits)")

---

Tags

pluginusercmspermissionsoctoberrainlab

### Embed Badge

![Health badge](/badges/abwebdevelopers-oc-user-permissions-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/abwebdevelopers-oc-user-permissions-plugin/health.svg)](https://phpackages.com/packages/abwebdevelopers-oc-user-permissions-plugin)
```

###  Alternatives

[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[offline/oc-mall-plugin

E-commerce solution for October CMS

1744.6k2](/packages/offline-oc-mall-plugin)[winter/wn-user-plugin

User plugin for Winter CMS

1233.5k13](/packages/winter-wn-user-plugin)[rainlab/userplus-plugin

User plus plugin for October CMS

168.8k2](/packages/rainlab-userplus-plugin)[froog/silvergraph

Generates data model visualisations from SilverSripe DataObjects, displaying database fields, relations and ancestry

425.7k](/packages/froog-silvergraph)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
