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.

General Questions /

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

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

Permissions error in 2.4 ?


Reply


351 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.