'Edit your watermarks' link appearing despite option being deactivated.

djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sat, 2007-11-10 20:12

Although I have unchecked the option to 'Allow users to upload their own watermark images', when using add items the link 'Edit your watermarks ' still appears in the watermarks section. Clicking the link results in the following error:

Quote:
Error Detail -
Error (ERROR_PERMISSION_DENIED)
in modules/watermark/UserWatermarks.inc at line 118 (gallerycoreapi::error)
in modules/core/UserAdmin.inc at line 107 (userwatermarksview::loadtemplate)
in modules/core/classes/GalleryView.class at line 295 (useradminview::loadtemplate)
in main.php at line 445 (useradminview::doloadtemplate)
in main.php at line 103
in main.php at line 88

System Information
Gallery version 2.3-svn
PHP version 4.4.7 apache
Webserver Apache/1.3.39 (Unix) PHP/4.4.7 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.30 OpenSSL/0.9.8b
Database mysqlt 4.1.22-standard
Toolkits Thumbnail, SquareThumb, ImageMagick, NetPBM, Gd
Operating system Linux host90.hrwebservices.net 2.6.18-8.1.14.el5 #1 SMP Thu Sep 27 19:05:32 EDT 2007 x86_64
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/419.2.1 (KHTML, like Gecko) Safari/419.3

 
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sat, 2007-11-10 20:49

A quick work-around for this error:

I commented out lines 42-44 of WatermarkOption.tpl (modules/watermark/templates).

Quote:
<a href="{g->url arg1="view=core.UserAdmin" arg2="subView=watermark.UserWatermarks"}">
{g->text text="Edit your watermarks"}
</a>

This skips the link altogether - obviously not a fix but fine for me as I don't want users to have this option.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-11-11 00:04

i can't reproduce the issue. i'm using the latest svn version too. core module version 1.2.24. watermark module version 1.1.3.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sun, 2007-11-11 10:06

I cleared the template cache but the problem persisted. I'm using a mod by Mindless to only show the "general" tab under "edit album" for registered users
http://gallery.menalto.com/node/44041

Maybe this is causing it?