I saw there was another thread of this but it didn't answer my question. I want to give a user access to a model admin and nothing else. I can make it happen so they log in and see the model admin page but they can only search, not add. when I check "Full administrative rights" they can see everything and add objects. however, if I uncheck "Full administrative rights" but still check every single other box they can search but not add - so something strange is going on. anybody know how to fix this?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
override the following functions like this for each dataobject that is being managed...
function canCreate() {return true;}
function canEdit() {return true;}
function canDelete() {return true;}
Barry
Thanks Barry, that works.
where do I find the file to add these entries?
add to your dataobject class.
ie
class MyDataObject extends DataObject {
.....
function canCreate() {return true;}
}
?>
Thank you, and what file would that be in?
It's in the file containing the dataobject class you want to apply the permission to.
see my reply to your other question for a more comprehensive answer
Rich