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

ModelAdmin permission doesn't work


Reply

3 Posts   1191 Views

Avatar
dendeffe

19 March 2010 at 6:28am Community Member, 135 Posts

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.

Avatar
Hamish

19 March 2010 at 10:28am Community Member, 712 Posts

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.

Avatar
dendeffe

20 March 2010 at 1:40am Community Member, 135 Posts

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.