XP Upload Wizard - Relieve Restrictions? XP Upload Wizard - Relieve Restrictions?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

XP Upload Wizard - Relieve Restrictions?

Started by TheKog, October 25, 2005, 08:48:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheKog

In my CPG I want to relieve the restriction "only the gallery admins and users that can have their own albums can use this feature". I have found code around line 664 of xp_publish.php  that seems to be the check for this -- do I just need to eliminate the entire first "If" block and make the second "elseif" block an "If" block?

I only allow registered users to upload files but they do not have the ability to create their own albums -- they merely upload into albums preset by the admin.

Thanks,
Mike

Joachim Müller


TheKog

How do I modify the code to relieve the restriction?

Joachim Müller


TheKog

It is simple. I have no problem with folks that are members of my gallery posting and have the permissions setup for that. I do not allow any of them to create albums -- they all post into preset albums.

So I want the current restriction of only allowing admins and users than can create albums to be eliminated.

How do I modify the code to allow this?

Joachim Müller


TheKog

Gee, thanks so much. *beep* do your users do to be treated with such disdain?