Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » ModelAdmin permission doesn't work

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

Page: 1
Go to End
Author Topic: 1135 Views
  • dendeffe
    Avatar
    Community Member
    135 Posts

    ModelAdmin permission doesn't work Link to this post

    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.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: ModelAdmin permission doesn't work Link to this post

    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.

  • dendeffe
    Avatar
    Community Member
    135 Posts

    Re: ModelAdmin permission doesn't work Link to this post

    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.

    1135 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.