Upload permission in albums on group basis - Page 2 Upload permission in albums on group basis - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Upload permission in albums on group basis

Started by Abbas Ali, September 08, 2006, 10:07:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Abbas Ali

Chief Geek at Ranium Systems

ST247

I just installed Coppermine 1.4.10.  I followed your instructions to change the database and upload the files.
I don't see any option to give permissions to a group either.
Thanks in advance for your help.

Abbas Ali

Did you just replaced the original files with the modded files? or applied the mod manually?
Chief Geek at Ranium Systems

ST247

Quote from: Abbas Ali on December 06, 2006, 11:26:34 AM
Did you just replaced the original files with the modded files? or applied the mod manually?
I replaced the files since I didn't have any other mods installed.

ugaMack

This is part of what I'm looking for. Does anyone know of a mod or plugin that would allow a group to create an album in a category outside of the user galleries?

Thanks

Zenigata


Abbas Ali

@ugaMack: afaik no such mod exists.

@Zenigata: Yes it should work.

@ST247: PM me your admin username/pass along with the site url.
Chief Geek at Ranium Systems

Jost


Hein Traag

Hi Abbas,

i am already using the mod http://forum.coppermine-gallery.net/index.php?topic=26218.0 and that works like a charm now.

This mod looks like something i coulduse  as wel. I am working on a site which, if all goes as planned, will have a large numbers of scouting groups adding pictures to the site. At this moment i can grant someone the right of upload by adding them to the Upload group. But that means they can basicly upload into any album which is set to accept uploads by visitors.

With this mod i can add a group for each person who requested upload permission. That person can then only upload in those albums where his/her group has been set as the one who can upload. But that would , in my case, probably result in a large list of groupnames in groupmgr.php

What i am looking for, and i am not sure if this mod can be adjusted for it, is a way to add one group to groupmgr.php which has upload priveleges, named Upload. And then i make someone a member of that group. And when i then assign the Upload group to a newly created album i can select All or choose specific person or persons in case there are more then 1 uploader from a group who wants to add pictures.

I hope i make sense , if not say so and i'll see if i can clearify.

Regards,
Hein

Abbas Ali

Hein,

Create a group called Uploader. All users who wants to upload should have this group as either their primary or secondary group. Then from album properties page allow the Uploader group to upload in that album. All users who have Uploader as their primary or secondary group will then have upload permission to that album.
Chief Geek at Ranium Systems

Hein Traag

#30
I think you misunderstood me Abbas.

When i set it up like you describe i still would have to make multiple Uploader group. I'll try to describe. Scoutgroup A and Scoutgroup B want to upload pictures from a camp to CPG. They both have 1 person in their group who takes care of the uploading. But i do not want the person from A being able to also upload in the album from person B and vice versa.

What i would see as a usefull feature is that you can add people to the group Uploader and that you can select in Album properties to either let the whole group Uploader be able to upload or just 1 person from to group to stop others from uploading in the wrong album.

I attached a picture which hopefully makes it visual. In the picture the group Uploader is chosen as the group who can upload into a album and All is chosen to allow everyone in that group to upload. Instead of All one could also choose just 1 person.

Hein

Hein Traag

I usually do not bump but in this case i am eager to know if this mod can do what i want. It would make my life easier knowing that even though someone is in the Uploader group they can not upload in all albums accept the ones i grant them rights to.

:) Abbas if you would so kind to give some thought to this option that i think would be a great benefit to this mod.

Kind regards,

Hein

Abbas Ali

Hein, Sorry for not replying your query. I guess with some more code changes (and db changes) the mod can do what you want. I will have to take a look at it to know how much more work is needed. (I myself have forgotten how this mod works and the code that went into it ;) )
Chief Geek at Ranium Systems

Hein Traag

No need for sorry Abbas, you are doing this voluntarily ;) Which i do appreciate.

Thanks for having a look at my request, i do think it would be of great benefit for sites with a large group of uploaders who may only upload to their assigned albums.

Again, thanks and io hope the outcome of your investigation will be positive  ;D

Hein

Abbas Ali

@Hein: Just an update that nothing has been done in this regards. Not getting enough time :(
Chief Geek at Ranium Systems

Hein Traag

Abbas

not a problem, your not being paid to do it  ;D. I already owe you for looking into it. I do think it is possible but i lack the coding skills  :-\

The mod works for my site, i only have to make sure the people i grant the upload right understand that they have to be carefull in which album they upload.

I sure hope you can find time and makes this work.

Thanks and regards,

Hein

Rorge

Hello,

Thanks for your work in this MUCH needed area.

When I applied this mod and went to change the album properties (visitor can upld files:yes) etc...then selected the group I wanted to be able to upload pics and selected update album I received the message:

There was an error while processing a database query

Stuck.  Thanks for your help

Joachim Müller

Quote from: Rorge on March 12, 2007, 06:02:29 AM
There was an error while processing a database query
Enable debug_mode, then replicate the error. Post the actual error message (the query that fails). Do not post debug_output.

Rorge

Thanks for your help GauGau

While executing query "UPDATE cpg1410_albums SET title='Elizabeth', description='', category='4', thumb='0', uploads='YES', comments='YES', votes='YES', visibility='0', alb_password='', alb_password_hint='', keyword='', upload_group='112' WHERE aid='39' LIMIT 1" on 0

mySQL error: Unknown column 'upload_group' in 'field list'



Joachim Müller

Means that you haven't run the query ALTER TABLE `cpgPrefix_albums` ADD `upload_group` INT NOT NULL ;as suggested in the initial posting of this thread. Make sure to replace cpgPrefix with the actual prefix of your Coppermine database tables.