Hide categories which user is not allowed to access Hide categories which user is not allowed to access
 

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

Hide categories which user is not allowed to access

Started by rufu, July 27, 2004, 04:07:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rufu

I'm wondering if anyone can help me out with this.  I've got 3 categories (public, work & friends), and I want to restrict access to work and friends to people I assign to each group.  This I have managed restrict access by setting the prefs for each album, which is quite slow, but the remaining problem is that the list of categories + sub-categories still appears.

What I want to happen is for unregistered users just to see the public category, users assigned to the work group to see the public + work category, and for users assigned to the friends group to see the public + friends category.

Is this possible?


Thanks

Joachim Müller

at the moment not possible without hacking the coppermine core code (index.php), php-knowledge required.

GauGau

buddhaa

#2
I'm trying to do the same thing then Rufu, I thing it's an important feature to have. Those categories and albums are too much in the open for 'anon' to see.

Buddhaa

Oh, and how can I delete a dir created by CPG 1.2.1 with 755 chmod. I have no ssh access and ftp won't do it.

Joachim Müller

If you can't delete files and folders with ftp you're stuck and will have to ask your webhost to do this for you.

GauGau

P.S. We have a "one question per thread" policy - please don't ask unrelated question on a thread, as you're sort of "hijacking" the original thread. Instead, if you can't find the answer to your question by searching the board and checking the coppermine docs, post a new thread on the relevant board.

skybax

Working on the category manager modding to make similar to the album properties feature,  adding a dropdown to allow categories to be viewable by certain groups. A hangup that I see right now is to make a category viewable to multiple groups and hidden from others, haven't figured how to bridge this yet.

Currently no code to post yet. Just an idea @ the moment with a rough sql statement. Working on the display aspect first. Other idea is to add a feature to select thumbnail (or leave blank) for category as well.


-T 8)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

skyxliner

Quote from: buddhaa on August 08, 2004, 12:51:06 AM
I'm trying to do the same thing then Rufu, I thing it's an important feature to have. Those categories and albums are too much in the open for 'anon' to see.

Buddhaa

Oh, and how can I delete a dir created by CPG 1.2.1 with 755 chmod. I have no ssh access and ftp won't do it.

if you have cpanel, deleted from cpanel because somehow ftp doesn't allow me to delete folders sometimes
------------------------------------------------------------------
this seems to be a repeated thread topic, hope you guys at coppermine can add this feature. definetnely useful

Joachim Müller

the question was not how to delete a category, it was "how to hide it". You should be able to delete categories using coppermine's built-in category manager.

GauGau

s2s-robert

Quote from: skybax on August 13, 2004, 04:07:12 PM
Working on the category manager modding to make similar to the album properties feature,  adding a dropdown to allow categories to be viewable by certain groups. A hangup that I see right now is to make a category viewable to multiple groups and hidden from others, haven't figured how to bridge this yet.

-T 8)

Can't you create a sort of 'access table' where you store which groups / users have access to which categories? If you have a number for both albums and categories you could have only 1 table for both groups & users.

stace-FT

I can't even find a way to limit view access by album (and I've checked the FAQ and the documentation). What am I missing?

Nibbler

Enabled 'users can have private albums' in config ?

stace-FT

Thanks.

And I suppose that user and group permissions take care of users actually being able to upload stuff to albums they create? (I don't want them uploading or creating.)

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here