No view permissions after upgrade from G2 to G3
honken
Joined: 2009-01-18
Posts: 6 |
Posted: Sun, 2013-12-22 22:46 | |||
Hi! I've just upgraded from G2 to G3 and imported all G2 data using the Gallery 2 Import module. The import completed without any issues and as an admin user things look fine, however if I login as any user with non-admin permissions I cannot see any images at all. I think I've found the issue, the import only mapped the "View full size" permission and not the "View" one, making it impossible for users to see anything. I've attached a screenshot of this, note that I have more groups than those seen in the screenshot but the problem is the same for all of them. As this is a fairly large install (+10K images) I really don't to have to manually redo all permissions, I use a couple of different group permissions and they are spread out all over the albums (per album level only, so no per-image permissions, I know they don't work in G3). Just to be on the safe side I completely reinstalled G3 and redid the import, but got the same issue again. What obviously would work here is to just set "View" permissions on the root album so it affects all child albums, but that would then completely mess up the permissions I got for the different groups as all users would see everything. Is this expected behaviour when doing an import from G2, and is there any way one can fix this after an import, or even during the import? I've tried looking at the database tables to see if I could just change this with some SQL, setting the "View" permission where the "View full size" one exists. Could not really find an easy way to do that though. Any help would be really appreciated, apart from this issue everything else seems OK and I really would like to move over to G3 if possible.
|
||||
Posts: 6
No one knows anything about the G2 import module? :/ I think there probably are other users getting the same error, if someone have any ideas on how to fix this it would be awesome, I really don't want to be stuck using G2, nothing against it but it feels like it's more and more of a legacy version.
I'd be happy to try patching either the import module or do some SQL modifications before on G2 or after G3 to fix this if someone can point to any documentation on where to begin doing any of that. As it probably should be a one-off thing to fix doing it directly in the database might be easier, anyone have any pointers where to begin in that case, hints on what tables are used for permissions etc?
Posts: 4
HI, I can't help you much, except to say that I upgraded from G2 to G3 today and did not get the same permissions problem you did. However I seem to have lost a lot of functionality in the permissions department. In G2 I used to have it so that each user had full permissions in their own album. So each user could create sub-albums, upload, edit, delete photos & albums but only in their own album. Now after installing G3 & importing G2 into it, I don't have that. Any registered user can make an album, and add photos, but can not edit, nor delete the photos they just uploaded. Even worse, all registered users can upload to anybody's album.
I looked for more permissions modules, but only found permissions_dialog_usability.
http://codex.galleryproject.org/Gallery3:Modules:permissions_dialog_usability
That might work, but it means that I'll need to make a "group" for each and every user, then set the permissions for each top level user album. Bleh. Oh, well, that seems to be what is now required. Gallery3 seems far less mature than Gallery2 did - to me, so far, after 1 day of working with G3.
In G2 I had a module that would create a home album/folder for each user & auto-set the permissions so that user owned that album and everything in it. This keeps everybody separate, but empowered (only) in their own area. I liked that, and wish that G3 had it too.
What permissions modules are you using?
Posts: 120
I've never used G2 or the upgrade module so I can't help the OP. But there was a recent post regarding users/groups at http://galleryproject.org/node/112476