Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Permissions error on Images tab

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1740 Views
  • Howard
    Avatar
    Community Member
    215 Posts

    Permissions error on Images tab Link to this post

    I have added a new page type that includes an images tab so that the client can upload or select an already uploaded pic to associate with that page. However when I am logged in as client whenever I click on the "Images" tab it logs me out of the CMS asthough I don't have permission to see that. If I gve the client group full admin rights or if I am logged in as admin then there is no issue.

    I am not keen on leaving them with full admin rights but wonder if there is a way to fix it?

    SS 2.2.2rc5

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Permissions error on Images tab Link to this post

    I have uploaded a screenshot to show you what the issue looks like - kinda odd

  • vstrazz
    Avatar
    Community Member
    63 Posts

    Re: Permissions error on Images tab Link to this post

    I had a similar issue.

    /sapphire/core/model/image.php line 435(for me) or search for function iframe()

    change

    if(!Permission::check('ADMIN')) Security::permissionFailure($this);

    to

    //if(!Permission::check('ADMIN')) Security::permissionFailure($this);

    this was added in 2.2.2, I'm sure there was a good reason for adding it, but if you have a custom images style uploading, it makes anything except admin get logged out immediately after logging in to the cms and clicking anything.

  • Laax
    Avatar
    Community Member
    14 Posts

    Re: Permissions error on Images tab Link to this post

    I have exactly the same issue. And I'm working on SS 2.2.2

    @howardgrigg: Did the comment line fixed it??

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Permissions error on Images tab Link to this post

    Sorry I havent tried it - I just gave the client admin permissions - should prolly have a go at fixing it though

  • Laax
    Avatar
    Community Member
    14 Posts

    Re: Permissions error on Images tab Link to this post

    Hi,
    Instead of commenting the line, it seems that you should change the permission test.
    There is a bug ticket about it : http://open.silverstripe.com/ticket/2769

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