Page 1 of 1

Knowledge base help

Posted: Wed Nov 21, 2012 8:04 pm
by quatre432
Hi i am using hesk for the knowledge base only, i have set this up just fine, now i am trying to figure out a way to allow acess to the knowledge base admin panel so everyone can add and delete stuff without being logged in, just curious if this is possible and what code i need to change i am pretty good with php, hope someone can help with this

Re: Knowledge base help

Posted: Thu Nov 22, 2012 9:41 am
by Klemen
You would have to remove at least

Code: Select all

hesk_isLoggedIn();

/* Check permissions for this feature */
if ( ! hesk_checkPermission('can_man_kb',0))
{
	/* This person can't manage the knowledgebase, but can read it */
	header('Location: knowledgebase_private.php');
    exit();
}
from admin/manage_knowledgebase.php

Do it on your own risk, giving access to admin features to the public is strongly discouraged!

Re: Knowledge base help

Posted: Mon Nov 26, 2012 5:40 pm
by quatre432
Thank you for your response, i understand it is dangerous but i removed everything to do with the admin except for the knowledge base and it we be me and a couple of friends storing knowledge for certain pc probs we deal with, i thought as much with the login and permission i have removed them before testing and try to go to the page when not logged in and get this message

Error:

Can't execute SQL


after putting them back and logging in i can then remove them and stay logged in and it works i think there is something else a little deeper in the code that has to be removed or // out

thanks again for the assistance