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, Ed, biapar, Willr, Ingo, swaiba

ModelAdmin permission doesn't work

Go to End

3 Posts   1549 Views


Community Member, 135 Posts

19 March 2010 at 6:28am

I want to give some members only access to the ModelAdmin. When I only choose ModelAdmin in members > Permissions, the member doesn't get access to admin.

When I choose CMSMain and ModelAdmin, the member can log in but only sees CMSMain.


Community Member, 712 Posts

19 March 2010 at 10:28am

You have to grant access to ModelAdmin and the particular subclass. Eg, if you've created a JournalEntryAdminclass, you need to set the permission to access both ModelAdmin and JournalEntryAdmin.


Community Member, 135 Posts

20 March 2010 at 1:40am

Thanks Hamish, that was indeed the problem.

Strangely enough the member can't add a photo: Action 'iframe' isn't allowed on class Image_Uploader

Also, the has_many object that is linked doesn't work properly: I can add one, but can't edit it. CanEdit and CanCreate are both set to true.