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.

Safecracker - edit entry with different author

September 27, 2013 6:16am

Subscribe [1]
  • #1 / Sep 27, 2013 6:16am

    Nixon Design

    4 posts

    Hello,

    Unfortunately we seem to be having an issue with SafeCracker 2.1 on a 2.6.1 installation. We have entries that are currently authored by a ‘Super Admin’ and we now require ‘owners’ to be able to edit these via a safecracker form.

    We have set all permissions within the Edit Group Preferences page but when logging in as an ‘owner’ and trying to edit an entry that they are related to we are getting the following on submission:

    You are not authorized to perform this action

    This is the current template code:

    {exp:safecracker channel="holiday_listings" form_class="form-horizontal" return="/ownersadmin" entry_id="{segment_3}" author_only="no" }
       {author_id}::{member_id}
    
       <input type="hidden" name="url_title" value="{url_title}">
    
       <div class="control-group">
        <label class="control-label" for="title">Title</label>
        <div class="controls">
         <input type="text" class="input-xlarge" name="title" id="title" value="{title}" size="50" maxlength="100"  disabled>
        </div>
       </div>
    
    
       <input type="hidden" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">
    
    
       <div class="control-group">
        <label class="control-label" for="p_owner_uploads[row_order][]">{label:p_owner_uploads} 
    <small>All owner image uploads are subject to approval</small></label>
        <div class="fields">
         <div class="controls"><!--THIS IS A MATRIX ROW-->
          {field:p_owner_uploads}
         </div>
        </div>
       </div>
    
       <div class="control-group">
        <label class="control-label" for="categories">Facilities</label>
        <div class="controls">
         {categories group_id="6"}
         <label class="checkbox span2">
          <input type="checkbox" name="category[]" id="{category_name}" value="{category_id}" {checked}> {category_name}
         </label>
         {/categories}
        </div>
       </div>
    
       <input type="submit" value="SUBMIT">
       {/exp:safecracker}

    We have checked all permissions including the ‘Include Members in PUBLISH page multi-author list?’ option along with the ‘Can edit posts authored by another user’ but to no avail. However as soon as I change the author to be that of the person I am logged in as Eg: Joe Bloggs, I can then submit the safecracker form without issue.

    Please could someone advise and help us hopefully find a solution - we found a post on these forums from 2011 (http://ellislab.com/forums/viewthread/181994/) which seems to be the same as our issue but the highlighted fix doesn’t seem to alter the outcome for us.

    Regards
    Sam

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

ExpressionEngine News!

#eecms, #events, #releases