jsherk
Posts: 34
|
| Posted: 01/11/2009, 5:28 PM |
|
Is there a list of the errors that get returned when you try access a restricted page?
So far I have seen these two:
notLogged
illegalGroup
Are there any others?
Are they listed somewhere? I tried finding them in the docs but could not.
Thanks
|
 |
 |
damian
Posts: 838
|
| Posted: 01/12/2009, 7:00 PM |
|
from common.php
//CCSecurityAccessCheck @0-7B496647
function CCSecurityAccessCheck($GroupsAccess)
{
$ErrorType = "success";
if(!strlen(CCGetUserID()))
{
$ErrorType = "notLogged";
}
else
{
$GroupID = CCGetGroupID();
if(!strlen($GroupID))
{
$ErrorType = "groupIDNotSet";
}
else
{
if(!CCUserInGroups($GroupID, $GroupsAccess))
$ErrorType = "illegalGroup";
}
}
return $ErrorType;
}
//End CCSecurityAccessCheck
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
jsherk
Posts: 34
|
| Posted: 01/12/2009, 7:18 PM |
|
OKay thanks... it looks like there are only 3 then:
notLogged = no user logged in
illegalGroup = a user is logged in but their group id is restricted from that page
groupIDNotSet = a user is logged in but they do not have a group id set
|
 |
 |
damian
Posts: 838
|
| Posted: 01/12/2009, 8:06 PM |
|
yep.
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |