Skip to content

Check member permissions on frontend

09 Apr 2011

Check member permissions on frontend

The plugin lets you perform check in ExpressionEngine templates for the permissions member has based on the group he belongs to.

  The text should be wrapped into {exp:check_member_permissions}...{/exp:check_member_permissions} tag pair and inside of it into one of bunch of conditionals (listed in the docs).
 
  Example:

{exp:check_member_permissions}
{if can_access_cp}I have CP access{
/if}
{if not_can_access_cp}I don
't have CP access{/if}
{/exp:check_member_permissions} 

Download

Comments

  1. Franco
    Franco 12 Apr 2011

    Hi there:

    I am unable to open your zipped plugin. Clicking on it produces a second zipped plugin with extension cpgz. Same for the category_parents add-on. Am I missing something ?

    • Yuri Salimovskiy's avatar
      Yuri Salimovskiy 12 Apr 2011

      Franco, thanks for the report - fixed now. Please try again

  2. Chuck
    Chuck 13 Apr 2011

    Hey there,
    I’ve successfully installed the plugin but when I try to use the tags I get the following error:
    —————————————
    Error
    The following tag cannot be processed:

    {exp:check_member_permissions}

    Please check that the ‘check_member_permissions’ module is installed and that ‘check_member_permissions’ is an available method of the module
    ———————————-

    Any ideas why this would be happening? (EE 2.1.3)

    Thanks,
    Chuck

    • Yuri Salimovskiy's avatar
      Yuri Salimovskiy 13 Apr 2011

      Weird.
      I’ve made some changes - please download again. Let me know if it does not help still.

About

    Hello, my name is Yuri and I specialize in creating custom add-ons (plugins, modules, extensions) for ExpressionEngine CMS.
    You can reach me anytime by emailing .(JavaScript must be enabled to view this email address)