Is it possible to restrict access of categories ? Is it possible to restrict access of categories ?
 

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

Is it possible to restrict access of categories ?

Started by cccc, July 21, 2005, 03:43:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cccc

I restricted the access of some albums (in the config panel "can be viewed by") to the desired users. Then I grouped all those albums in a category.
On my home page I display "catlist/alblist...".
When I access to the home page (non logged), the restricted albums are hidden but the categories are still visible, empty but visible.
Is there a way to hide empty or "hidden" categories?

Joachim Müller


cccc

I supose I should add a criteria in the "function get_cat_list(&$breadcrumb, &$cat_data, &$statistics)" in index.php that checks if the number of albums selected for the current user is 0.
But I need some help for the code.

cccc

Found !

In theme.php I deleted the code in the section

<!-- BEGIN catrow_noalb -->
<!-- END catrow_noalb -->

and seems to work.

Joachim Müller

see my reply to the other identical thread you started: I don't think that this solution will actually work. Next time you want to hire someone for a task you already started a thread for, just reply to your existing thread accordingly and a moderator will move your thread to the freelancer sub-board - there's no point in cross-posting nor double-posting.