PEAK XOOPS - Probelm with Myalbum - submitter can't delete his own pictures in englishin japanese

Probelm with Myalbum - submitter can't delete his own pictures

List posts in the topic

question Probelm with Myalbum - submitter can't delete his own pictures

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2004/4/10 20:38
leing  二等兵   Posts: 1
The version used is 2.5b1.

I meet with some issue after I installed myalbum.
If I login as admin, I can delete every pictures successfully.
But when I login as a normal user, I can't delete pictures the account posted before.
i lokked throgh editphot.php and especially the following section.

// Permission Check
if ( $xoopsUser ) {
$xoopsModule = XoopsModule::getByDirname("myalbum");
if ( $xoopsUser->uid() != $submitter && ! $xoopsUser->isAdmin( $xoopsModule->mid() ) ) {
redirect_header(XOOPS_URL."/",3,_NOPERM);
exit();
}
} else {
redirect_header(XOOPS_URL."/",3,_NOPERM);
exit();
}


I am confused. submitter should have enough permission to delete his own pictures. What is the matter?
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!