#46

Product support

Get help in the plugin support forum.

Categories

  • Developer Tools
  • Utility

OctoberCMS Frontend Roles Manager

With the Frontend Roles Manager you can change the roles and permissions of the frontend users.

Like this plugin?

If you like this plugin or if you use some of my plugins, you can help me to make new plugins and provide plugins support and further development. Make donation with PayPal or give this plugin a Like. :)

Manage Groups & Permissions

Go to the Users page in the backend and look for the section named Groups or Permissions.

Check if a user has a role

{% if user %} // Check if the user is logged in
   {% if hasRole('Admin') %}
   Admin Power!
   {% endif %}
{% endif %}

Display the role of the user

1 = The ID of an user

{% if hasRole('Administrator', 1) %}
        Administrator
{% elseif hasRole('Moderator', 1) %}
         Moderator
{% endif %}

Check if a user has a permission

{% if user %} // Check if the user is logged in
   {% if can('manage_post') %}
   I can manage this.
   {% endif %}
{% endif %}

Like this plugin?

If you like this plugin or if you use some of my plugins, you can help me to make new plugins and provide plugins support and further development. Make donation with PayPal or give this plugin a Like. :)

  • Found the plugin not useful on 10 Aug, 2016

    Does not look like author wants to support this plugin anymore. It has been broken for quite a while and the only update I see is "Uninstall bug fix" to help users uninstall this product.

  • Found the plugin not useful on 10 Aug, 2016

    It is not compatible with the latest build. As mentioned there are errors in the .yaml files and Updating a User Role does not work. Also adding a Role to a user seems no longer to work.

  • Found the plugin useful on 4 Aug, 2016

    It still has the previous mentioned bugs in it, but if you fix them, it works great. Hopefully there will be a new stable release soon.

  • Found the plugin not useful on 13 Jul, 2016

    Plugin not compatible with latest build. As many mentioned there are errors in the .yaml files and Updating a User Role does not work.

  • Found the plugin useful on 9 Jul, 2016

    Found some bugs in:

    1. /plugins/shahiemseymor/roles/controllers/groups/config_form.yaml
    2. /plugins/shahiemseymor/roles/controllers/groups/config_list.yaml
    3. /plugins/shahiemseymor/roles/controllers/permissions/config_form.yaml
    4. /plugins/shahiemseymor/roles/controllers/permissions/config_list.yaml

    Instead of full paths to the config files with ~ or @ you can change it to $/shahiemseymor/roles/controllers/groups/config_form.yaml etc. In the last builds (347, 348) of October I'm getting errors because you used @ in /plugins/shahiemseymor/roles/controllers/groups/config_list.yaml

  • Found the plugin not useful on 16 Jun, 2016

    Can't change user role :(

  • Found the plugin not useful on 23 May, 2016

    how to get role_user table data from db I tried {{role_user}} but not working :(

  • Found the plugin useful on 4 May, 2016

    Doesn't work, had to add a patch because you cannot change roles of a User (in the users section in backend, the checkboxes do nothing). However after I applied the patch (which I found in the forums, I was able to change them)

    also, the code does not work, I tried this is my "Code" section of my /home page

    use ShahiemSeymore\Roles\Models\UserGroup; function onStart() { if ($user->hasRole('Administrator')) { ......

    I get Exception error undefined variable 'user' ????

  • Found the plugin useful on 19 Jan, 2016

    Great plugin

  • Found the plugin useful on 18 Aug, 2015

    Great plugin; thanks for all the hard work!

  • Found the plugin useful on 6 Feb, 2015

    hello, I had to delete my roles and permissions to update the plugin, caue it gave a not null constraint violation. i am using postgresql. any way, nice one.

  • Found the plugin useful on 6 Feb, 2015

    hello, I had to delete my roles and permissions to update the plugin, caue it gave a not null constraint violation. i am using postgresql. any way, nice one.

  • Found the plugin useful on 27 Jan, 2015

    Sehr gute Plugin!!!

  • Found the plugin useful on 17 Dec, 2014

    Excellent plugin! Easy to setup with powerful features. Documents is easy to understand and use.

1.0.10

Uninstall bug fix

Jul 02, 2015

1.0.9

Code cleanup & hasRole by UserId (see documentation)

Mar 20, 2015

1.0.8

Update for RC(2)

Feb 22, 2015

1.0.7

Update for RC

Feb 20, 2015

1.0.6

Fixed permission bug & Assign users in default groups

Feb 12, 2015

1.0.5

Added default group checkbox (roles) and description field

Feb 05, 2015

1.0.4

Bug fixed, user permission method can handle arrays (see documentation)

Aug 23, 2014

1.0.3

Bug fixes (Auth check)

Jul 10, 2014

1.0.2

Renamed New Role to New Group

Jun 30, 2014

1.0.1

First version

Jun 27, 2014