Jump to content


Photo

New user role can't create thumbnails

solved

  • Please log in to reply
13 replies to this topic

#1 Alex

Alex

    Full Member

  • Members
  • PipPipPip
  • 78 posts
  • 5

  • LocationMelbourne, Australia

Posted 16 February 2012 - 12:42 AM

I have created a new user role, that role is not able to create thumbnail crops using the thumbnails module.

When clicking 'Thumnails' it just opens a window with the home admin page.

It works fine for the main superuser role. I tried allowing all permissions for the new role but no luck.

Using processwire 2.1

- Alex

#2 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 16 February 2012 - 03:28 AM

Hmm, gotta admit that I haven't thought about that at all. I think new role needs access to /admin/pages/image-crop/ and it will work. I need to get custom access easier, maybe with new permission for cropping.

#3 Alex

Alex

    Full Member

  • Members
  • PipPipPip
  • 78 posts
  • 5

  • LocationMelbourne, Australia

Posted 16 February 2012 - 09:27 PM

No worries, thanks for the reply.
I can give my workmates superuser access for the time being - its not a critical thing for me.

#4 landitus

landitus

    Distinguished Member

  • Members
  • PipPipPip
  • 96 posts
  • 6

  • LocationBuenos Aires, Argentina

Posted 22 February 2012 - 02:01 PM

I was having the same problem! Hope it can be fixed soon! :)

#5 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 22 February 2012 - 05:01 PM

I fixed this on latest commit. Just make sure that your user has permission "image-crop". Permission is created on install or you can create it manually if you upgrade.

Also made few margin/padding tweaks, fixed one minor bug and once again fixed the mouseenter / mouseover bug. Chrome does need mouseenter and fox and others do require mouseover, so I check for both now :)

#6 Alex

Alex

    Full Member

  • Members
  • PipPipPip
  • 78 posts
  • 5

  • LocationMelbourne, Australia

Posted 22 February 2012 - 09:35 PM

Works like a charm,

I upgraded to 2.2 while I was at it and added permission "crop-image" as you suggested. Works great.

thanks!

#7 landitus

landitus

    Distinguished Member

  • Members
  • PipPipPip
  • 96 posts
  • 6

  • LocationBuenos Aires, Argentina

Posted 27 February 2012 - 01:51 PM

Thanks for the update! Works like a charm!

#8 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 28 February 2012 - 12:47 AM

Great, thanks for testing guys.

Realized now, that probably no need for "image-crop" permission. Would it be enough to just use page-edit and set cropping permission based on that? Or do you think there could be need to disallow cropping, but allow editing? (vice versa is not even possible, since you need page-edit permission to view that editing page)

#9 Alex

Alex

    Full Member

  • Members
  • PipPipPip
  • 78 posts
  • 5

  • LocationMelbourne, Australia

Posted 29 February 2012 - 05:31 AM

hmm, I can't forsee a need to disallow cropping but allow editing in what i'm doing.

on a related roles question I have... I created a new user role for my workmates with all the default permissions allowed, but they can't create or publish new pages, just edit existing ones. I'm not sure how permissions work exactly but can I add ability to create and publish pages to a role?

#10 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 29 February 2012 - 06:38 AM

Alex: edit the home-template, access tab and see that you have allowed creating pages and add children for your custom role.

#11 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 03 March 2012 - 01:38 AM

Realized now, that probably no need for "image-crop" permission. Would it be enough to just use page-edit and set cropping permission based on that? Or do you think there could be need to disallow cropping, but allow editing? (vice versa is not even possible, since you need page-edit permission to view that editing page)


I changed that cropping requires only page-edit permission. So if you update and have used this before, you can remove that image-crop permission.

#12 Soma

Soma

    Hero Member

  • Moderators
  • 3,217 posts
  • 1763

  • LocationSH, Switzerland

Posted 03 March 2012 - 09:08 AM

The thumbnails module doesn't work with repeaters, the edit link goes to a page that doesn't resolve.

@somartist | modules created | support me, flattr my work flattr.com


#13 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 03 March 2012 - 09:31 AM

Haven't tried repeaters yet. What you mean by the page that doesn't resolve?

My guess is that it has something to do with page-edit permission. Maybe editor doesn't have real edit access to repeatable pages?

#14 Soma

Soma

    Hero Member

  • Moderators
  • 3,217 posts
  • 1763

  • LocationSH, Switzerland

Posted 03 March 2012 - 09:26 PM

I tested again, it show an default thumb when hovered, but when I click the link I get an error:


Fatal error: Call to a member function get() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/pw-dev/site/modules/Thumbnails/ProcessCropImage/ProcessCropImage.module on line 50

This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.

@somartist | modules created | support me, flattr my work flattr.com






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users