Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » ModelAdmin: Permission Problem on FileIFrameField

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 876 Views
  • Ironcheese
    Avatar
    Community Member
    33 Posts

    ModelAdmin: Permission Problem on FileIFrameField Link to this post

    Hey there,
    I have a problem with the backend user permissions and the FileIFrameField.
    I made a screenshot:

    I have some Usergroup which have access to only specific Modules in the Backend. With these restricted Users I get this Error in my FileIFrameField (see Screenshot). Is there any way to solve this? Even if I grant access to the Assest this Error shows up.

    Thanks for any advice

  • swaiba
    Avatar
    Forum Moderator
    1788 Posts

    Re: ModelAdmin: Permission Problem on FileIFrameField Link to this post

    Hi,

    I'd suggest this go into another area of the forum as both ModelAdmin and FileIFrameField are not attional modules but part of the cms/sapphire system.

    Other that that I'd recommend making the user an admin to over come this - assuming that when logged in as an admin you can access this. Alternatively it could be folder permissions or you may need to add these are the functions to place within data objects to allow editing...

       function canCreate() {return true;}
       function canEdit() {return true;}
       function canDelete() {return true;}

    Barry

  • Ironcheese
    Avatar
    Community Member
    33 Posts

    Re: ModelAdmin: Permission Problem on FileIFrameField Link to this post

    Hi swaiba,

    I have all those functions (canCreate, canEdit, canDelete and even canView) in my DataObject.

    You are right: if I'm logging in as Admin I have no problem and can access the FileUpload without trouble.
    As soon I log in as a restricted User (e.g. that User belongs to a group that only has access permission to those two modules) I get that error.

    ..and sorry for posting in the wrong section, I did not know that the ModelAdmin aint a seperate Module. xD

  • swaiba
    Avatar
    Forum Moderator
    1788 Posts

    Re: ModelAdmin: Permission Problem on FileIFrameField Link to this post

    No worries about posting to the wrong place! I'm just concerned that you wouldn't get much of a response here on it - for eaxmple I rarely post here as I steer towards the core platform and do not wish to rely on modules.

    Anyway...

    please post your code and exact detail of users in order to replicate. I'd image that whichever core item is causing the problem could be overridden.

    Barry

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