Forums

Front permission

mrsynock 14 Jan, 2009
Hello,
yet another front permission pain !!!

that's quiet nothing but I can't release it :

All my connectivity's link are on a simple joomla article.
Only registered people can access to this article so that only registered user can access connectivity.

The trouble is that somebody can copy the link and when He can't register anymore (ie : not member anymore), he can still connect to the connectivity by entering the direct link.

In other words, we can select edit permission but how can we select read permissions ?

thank you
Max_admin 14 Jan, 2009
Hi,

use a small PHP statement at the top of the HEAD code in the connection to return any user un authorized.

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
chriscaple 09 Apr, 2009
What would that statement look like?
GreyHead 09 Apr, 2009
Hi Chriscaple,

Something like:
<?php
$user =& JFactory::getUser();
If ( $user->id == 0 ) {
  global $mainframe;
  $mainframe->redirect('index.php');
}
?>

Bob
chriscaple 09 Apr, 2009
Awesome, man. Works like a charm. Many thanks!
This topic is locked and no more replies can be posted.