1
leing
Probelm with Myalbum - submitter can't delete his own pictures
  • 2004/4/9 3:26

  • leing

  • Just popping in

  • Posts: 2

  • Since: 2004/4/9 3


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?

Login

Who's Online

903 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 903


more...

Donat-O-Meter

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

Latest GitHub Commits