Page 1 of 1

You do not have permission to access

Posted: Sat Mar 16, 2024 10:45 pm
by andyrav

Hi
on the login page is there anyway to stop the messgae
You do not have permission to access /'PAGE'

thanks


Re: You do not have permission to access

Posted: Sat Mar 16, 2024 11:53 pm
by arbei

If you use User Level Security, make sure you have granted correct permissions to users. For example, don't set the Start Page to some page that all users have permission. If users try to access some pages that they do not have permissions, they will see the error message.


Re: You do not have permission to access

Posted: Sun Mar 17, 2024 12:12 am
by mobhar

Alternatively, you may simply replace the phrase by a blank string in order to get rid off, for example, put this code in Language_Load server event:

$this->setPhrase("NoPermission", "");

However, if you replace that phrase by a blank string, then your end-users will never know what's going on. Therefore, you should replace it by another informative friendly message, such as:

$this->setPhrase("NoPermission", "The page is restricted, so please login to access the page...");