Page 1 of 1

Fix User Access?

Posted: 26 Jun 2010, 20:44
by leej22
Just wanted to suggest the user-codes be fixed in next release of PhocaGuestbook so the documentation is correct... As it states that administrators AND super administrators are able to unpublish/delete the messages from front end, but it seems to not always be the case... :idea: On my install it only worked for super administrator.
i.e....
viewtopic.php?f=2&t=9874

....the strtolower($user->usertype) is inconsistent throughout.

PhocaGuestbook is real nice component, just thinking this should be fixed so less issues from those who use it. : :)

Emilee

Re: Fix User Access?

Posted: 26 Jun 2010, 21:34
by Jan
Hi, it was fixed to:

Code: Select all

if (strtolower($user->usertype) == strtolower('super administrator') || strtolower($user->usertype) == strtolower('administrator')) {
try to download the file now and try to upgrade.

Jan