Jump to:

3373 Posts in 998 Topics by 712 members

Data Model Questions

SilverStripe Forums » Data Model Questions » ModelAdmin and permissions to Files and Images

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

Page: 1
Go to End
Author Topic: 989 Views
  • snichme
    Avatar
    Community Member
    2 Posts

    ModelAdmin and permissions to Files and Images Link to this post

    Hi
    Some thoughts about permissions and ModelAdmin

    I think the permissions CMS_Main and AssetsAdmin is a bit wierd, a user need the permission CMS_Main to be able to upload a file using ModelAdmin. Shouldn't it be the permission AssetsAdmin?

    I have a DataObject with a $has_one relation to a Image and users with CMS_Access_{ModelName} can access it and save it but he can only upload a image if he has CMS_Main. I get a permission error in the iframe (the one that uploads the image) when the user only have AssetsAdmin.

    What is AssetsAdmin for then? is it necessary

    //Magnus

  • Judge
    Avatar
    Community Member
    79 Posts

    Re: ModelAdmin and permissions to Files and Images Link to this post

    AssetsAdmin is a pretty high privilege that gives access to all the assets. I would assume you would want to keep that away from most users. It is also all about the back-end administration rather than front-end website, which may explain why AssetsAdmin does not give upload privilege to front-end users.

    -- JJ

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