Log in

View Full Version : Bypass 'Can view forum' permission


Dean C
07-25-2005, 10:37 AM
I have it set up on my testforum that guests cannot view the forum (set via the permission). However, there is one script I'd like them to see without having to log in. Is there a way I can bypass this permission?

Marco van Herwaarden
07-25-2005, 10:54 AM
not without hacking into global.php.

If on 3.0.7 find:
$allowed_scripts = array(
'register',
'login',
'image',
'sendmessage',
);
and add your script.

Marco van Herwaarden
07-25-2005, 10:55 AM
oops 3.5, well i guess it will be almost same.

Edit: yes it is.

Dean C
07-25-2005, 10:55 AM
Meh, I really really don't want to have to hack lol. *looks in global.php*

Edit:

Yep, there's no hook to add to that array in 3.5 either

sabret00the
07-25-2005, 10:59 AM
go request one dean ;)

Dean C
07-25-2005, 11:17 AM
Marco came up with a solution. Although not accurate just set THIS_SCRIPT to sendmessage :)

Dean C
07-25-2005, 12:58 PM
Marco's solution doesn't actually work :( In fact it appears that the permission is done elsewhere. As I manually added my script to that array and I still get the no perms error.