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

ModelAdmin permission doesn't work


Go to End


3 Posts   1633 Views

Avatar
dendeffe

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.

Avatar
Hamish

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.

Avatar
dendeffe

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.