Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Permissions error in 2.4 ?


Go to End


731 Views

Avatar
biurex

Community Member, 3 Posts

5 October 2012 at 10:20pm

Hi.
I encountered a strange permissions behaviour, and I believe this is a bug and not something mixed up in my datamodel.
I have a few available translations, with a separate group of editors for each translation (permissions are set up in SiteConfig's "who can edit" field and inherited by all pages in each translation).
All my users, that do not have admin rights, cannot edit DataObjects, but they can edit pages that own these objects.
Each time they click on "add DataObject" below ComplexTableField, they get a blank popup, and after closing it the link "add DataObject" suddenly disappears. They cannot edit or delete these objects also.
I don't even have any idea how to diagnose that further, nor how to fix that.
I even tried to hardcode canEdit() { return true; } in my DataObject, and also redeclaring $table->setPermissions('add','edit','show','delete') for each hasmany table, but nothing changes.
Please help me with this one.