Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

No worries, thanks for the reply.

I can give my workmates superuser access for the time being - its not a critical thing for me.

Posted

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 :)

Posted

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!

Posted

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)

  • Like 1
Posted

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?

Posted

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

  • Like 1
Posted

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.

Posted

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

Posted

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?

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...