1
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?