Fix User Access?

leej22
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Jun 2010, 19:18

Fix User Access?

Post by leej22 » 26 Jun 2010, 20:44

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

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44104
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fix User Access?

Post by Jan » 26 Jun 2010, 21:34

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
If you find Phoca extensions useful, please support the project

Post Reply