This topic was marked solved by its starter, on January 9th, 2016, 04:42 PM
Some bugs with allow_guestAccess

CerealGuy

  • Posts: 343
Some bugs with allow_guestAccess
« on May 30th, 2014, 11:52 PM »Last edited on May 31st, 2014, 12:27 AM
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]
elseif (empty($settings['allow_guestAccess']) && we::$is_guest && (empty($action) || !in_array($action, array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'verification'))))

to
Code: [Select]
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

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Re: Some bugs with allow_guestAccess
« Reply #1, on June 7th, 2014, 04:51 PM »
#2 The admin needs to take away the 'Search for posts and topics' permission for Guests. Likewise if Guest has permission to look at the Media Gallery or the Member List then these appear on the menus but do nothing.

CerealGuy

  • Posts: 343
Re: Some bugs with allow_guestAccess
« Reply #2, on March 19th, 2015, 07:36 AM »
This is still unsolved.
@Farjo allow_guestAccess = False has the effect that guests only can login. Nothing else. So changing the permissions is only a workaround.

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Re: Some bugs with allow_guestAccess
« Reply #3, on March 22nd, 2015, 03:48 PM »
@CerealGuy Not sure I've mentioned allow_guestAccess, but it was 9 months ago. I was pointing out a workaround in lieu of a permanent fix, and pointing out a couple of other bugs of the same nature.

CerealGuy

  • Posts: 343

Farjo

  • "a valuable asset to the community"
  • Posts: 492


Nao

  • Dadman with a boy
  • Posts: 16,079

CerealGuy

  • Posts: 343
Re: Some bugs with allow_guestAccess
« Reply #8, on February 5th, 2016, 12:27 AM »
Not for me, but those overflows happen often in firefox. In Chrome i never had one (except for the mobile version).