1
animas
XcGallery publsih approval...
  • 2005/2/4 16:02

  • animas

  • Quite a regular

  • Posts: 206

  • Since: 2005/1/30


I created a new ALBUM and default Permissions for this album
Album can be viewed by: = Everybody(public album)

In admin>xcgallery>groups:
when
Pub. Upl. approval (1) for Registered users = yes
Priv. Upl. approval (2) for Registered users = no

users are able to upload and publish! in their public album what they should not be. Anyone got the fix?

[NB:
when
Pub. Upl. approval (1) for Registered users = yes
Priv. Upl. approval (2) for Registered users = yes
both public and private images are not published without approval.Works fine.]

2
evcwally
Re: XcGallery publsih approval...
  • 2005/4/21 16:57

  • evcwally

  • Just popping in

  • Posts: 2

  • Since: 2005/3/29


I had the same problem. After a couple minute of search in php code i found this in "include/init.inc.php" (from module directory of course):

...
if (
$ugroup['pub_upl_need_approval'] == 0$USER_DATA['pub_upl_need_approval'] = $ugroup['pub_upl_need_approval'];
if (
$ugroup['priv_upl_need_approval'] == 0$USER_DATA[[color=FF0000]'pub_upl_need_approval'[/color]] = $ugroup['priv_upl_need_approval'];
...


Here is the erreur, just replace pub by priv in this line like this :

...
if (
$ugroup['pub_upl_need_approval'] == 0$USER_DATA['pub_upl_need_approval'] = $ugroup['pub_upl_need_approval'];
if (
$ugroup['priv_upl_need_approval'] == 0$USER_DATA[[color=00FF00]'priv_upl_need_approval'[/color]] = $ugroup['priv_upl_need_approval'];
...

Login

Who's Online

192 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits