You do not have permission to access

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
andyrav
User
Posts: 641

You do not have permission to access

Post by andyrav »

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

thanks


arbei
User
Posts: 9384

Post 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.


mobhar
User
Posts: 11725

Post 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...");

Post Reply