ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Template editing access

June 12, 2008 10:10pm

Subscribe [3]
  • #1 / Jun 12, 2008 10:10pm

    Corey Lane

    34 posts

    First of all, running ExpressionEngine 1.6.3 Build 20080421.

    I’ve modified a member group’s ‘Template Editing Privileges’ to allow them editing access to a couple of template groups. I’ve also given the group access to the template page via “Control Panel Area Access”

    But when I login as a user in that member group, and click on the Template tab, I get the follow error:

    Template Management
     
    There are no templates currently assigned to you

    I’ve tried clearing cached data with no luck. Also tried logging in as a different user in the same member group, also failed.

    Any ideas? What am I missing?

    Thanks

  • #2 / Jun 13, 2008 12:00pm

    Sue Crocker

    26054 posts

    When you built the member group, did you start from scratch, or did you base it off the SuperUser?

  • #3 / Jun 13, 2008 3:15pm

    Corey Lane

    34 posts

    I created the group from scratch.

  • #4 / Jun 15, 2008 11:44am

    Robin Sowell

    13255 posts

    Looking at the code, for non-superadmins, the message is triggered if:
    1. They don’t have permission to admin template tab ($DSP->allowed_group(‘can_admin_templates’))
    or
    2. No template groups have been assigned to them (sizeof($SESS->userdata[‘assigned_template_groups’]) == 0)

    I’d double check both settings in member managment.  Confirm they can admin templates and have template groups assigned.  I just don’t see how it would be triggered if those two conditions are met.

    Make sense?

  • #5 / Sep 19, 2008 12:54pm

    Chris Jennings

    87 posts

    I can’t really put my finger on it but there maybe a bug in version 1.64 - cp-templates.php, because I don’t seem to be able to give one user access to one template group.

    I get this error: ‘There are no templates currently assigned to you’ even if I assign one template group and allow access to the Templates. I don’t want to give access to Administration of templates, because the user then gets to create new template groups.

    The error in the file may have something to do with:

    if (sizeof($SESS->userdata['assigned_template_groups']) == 0 AND $DSP->allowed_group('can_admin_templates') == FALSE)

    the above from 1.62
    —-

    if ($SESS->userdata['group_id'] != 1 && (sizeof($SESS->userdata['assigned_template_groups']) == 0 OR $DSP->allowed_group('can_admin_templates') == FALSE))

    this from 1.64

    I have replaced cp-templates.php with the earlier version and it works for me now….

  • #6 / Sep 21, 2008 12:57pm

    Robin Sowell

    13255 posts

    I’ll double check, but I’m pretty sure 1.6.4 is correct.  They need to have permission to administer templates AND templates assigned to them.

    On the plus side- if the create a new template group?  It is not automatically assigned to them, so they can’t do anything with it.

    But I’ll confirm which is correct.

  • #7 / Sep 22, 2008 2:10pm

    Robin Sowell

    13255 posts

    OK- confirmed.  1.6.4 is the correct behavior.  They should be required to have both Template admin rights and templates assigned to them.  I realize the hack gets it working like you want, but for a long term fix, you’d really want to put in a feature request.

    Make sense?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases