I have an issue where safecracker will only save entries if the safecracker user ID is equal to that of the user who authored the post. I have two admin users set up, they can edit their own posts, but not each others.
When a user tries to edit a post that is not theirs they get the error “You are not authorized to perform this action”
Here’s my code:
{exp:safecracker
datepicker="no"
url_title="{segment_3}"
include_jquery="no"
require_entry="yes"
rules:cf_orphan_sponsor_email="required|valid_email|min_length[5]"
}
<label for="url_title">Your Name</label>
<input type="text" name="cf_orphan_sponsor_name" id="cf_orphan_sponsor_name" value="{cf_orphan_sponsor_name} - {title}" maxlength="75" size="50" /><br >
<label for="url_title">Your Email</label>
<input type="text" name="cf_orphan_sponsor_email" id="cf_orphan_sponsor_email" value="{cf_orphan_sponsor_email}" maxlength="75" size="50" /><br >
<label for="url_title">Your Phone Number</label>
<input type="text" name="cf_orphan_sponsor_phone" id="cf_orphan_sponsor_phone" value="{cf_orphan_sponsor_phone}" maxlength="75" size="50" /><br >
{if captcha}
<label for="captcha">Please enter the word you see in the image below:</label>
{captcha}
<input type="text" name="captcha" value="{captcha_word}" maxlength="20" /><br >
{/if}
<input type="submit" name="submit" value="Submit" />
{/exp:safecracker}
I’m attaching a screenshot of my settings