Hi folks
I feel like I'm missing something basic here. Please let me know if this has been covered somewhere, a fairly decent amount of Googling forum reading hasn't turned up anything yet.
We'd like to have several users who have permission to only edit certain pages on our site (say, our job postings site). When I create user accounts via the security tab and give them the appropriate permissions (that is, add them to the Job Posting Editor group and configure the Job Posting page to be editable only by people in the Job Posting Editor group) they aren't able to log into the admin UI (I go to http://server/admin, log in, and get "I'm sorry, but you can't access that part of the CMS. ").
I've also tried editing the PHP underlying this page like:
<?php
class CareerPage extends Page {
static $db = array(
);
static $has_one = array(
);
static $allowed_children = array('JobPosting');
function canEdit() {
return Permission::check("ADD_JOB_POSTING");
}
}
class CareerPage_Controller extends Page_Controller implements PermissionProvider {
function providePermissions() {
return array(
"ADD_JOB_POSTING" => "Add job postings",
);
}
}
?>
with the same result.
It seems like the problem is that I haven't given this group appropriate permission to even view the site tree. It's fine if they can do this as long as they can't edit pages we haven't specifically given them access to. I've tried giving this group a number of permissions from the Security tab, to no avail.
Any thoughts?
Thanks in advance!