How-to-do?
Normally I use the standard joomla but in this case I have to hack, sorry... well, What part of the line code I have to hack?
Thanks in advance for your help!

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
I didn't say it was a great idea. ;)newart wrote:by logic you can simply delete the modify icons in such a way that you cannot see a link for modifying an article but in this case you have to think that all guests cannot do anything... :-\ or simply you have to hack that icon link to be viewable only for up to authors level... but in this case the problem is, you cannot see it but you can do it - :P I don't like that solution... and you? ;)
Code: Select all
// Make sure you are logged in and have the necessary access rights
if ($user->get('gid') < [b][color=red]19[/color][/b]) {
JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
return;
}
Code: Select all
// Make sure you are logged in and have the necessary access rights
if ($user->get('gid') < 19 && $article->id > 0) {
JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
return;
}
Opie wrote:You might change the if statement I pointed to earlier to check the $article->id. If it is greater than 0 it should already be an article, so you would want to exit out of the function. Something like this may work:Code: Select all
// Make sure you are logged in and have the necessary access rights
if ($user->get('gid') < 19 && $article->id > 0) {
JError::raiseError( 403, JText::_('ALERTNOTAUTH') );
return;
}
As long as your satisfied, then that is all that matters.newart wrote:yesterday used by 20 too - it was the same