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

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
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
Previous post - Next post | Parent - No child | Posted on 2004/4/11 17:54
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It was a bug.
Perhaps, this is one of "some fixes" in 2.60beta01.

I recommend 2.65 to you.
I think it's a stable version.
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!