Found some bugs with allow_guestAccess set to false.
They all appear when the user is a guest.
#1
Guests can not switch the skin, because 'skin' is not an allowed action (index.php).
Fix:
Change
Code: [Select]
to
Code: [Select]
#2 Guest sees a searchbox, but he needs to be registered to search, therefore an ugly frame appears. I think the best is to just disable the searchbox for guests when allow_guestAccess is false.
#3 Same for the quick access sidebar element.
https://github.com/C3realGuy/wedge/commit/49b250e9c18c54a6a6e3a05aed33383b0cf37f10
They all appear when the user is a guest.
#1
Guests can not switch the skin, because 'skin' is not an allowed action (index.php).
Fix:
Change
elseif (empty($settings['allow_guestAccess']) && we::$is_guest && (empty($action) || !in_array($action, array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'verification'))))
to
elseif (empty($settings['allow_guestAccess']) && we::$is_guest && (empty($action) || !in_array($action, array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'verification', 'skin'))))
#2 Guest sees a searchbox, but he needs to be registered to search, therefore an ugly frame appears. I think the best is to just disable the searchbox for guests when allow_guestAccess is false.
#3 Same for the quick access sidebar element.
https://github.com/C3realGuy/wedge/commit/49b250e9c18c54a6a6e3a05aed33383b0cf37f10