Submit button for administrator

vaughan

Member
Hi.

How I can set up the submit button only see by the administrator.
The submit button I disabled in configuration, so that users can only use the save button as a copy. But the administrator (or other user of my choice) I do want to be able to use the submit button. Is it possible?

thanks
 
I would do it via a custom template,

Something like changing....

Code:
<?php echo $form->submitButton;?>

to

Code:
	<?php
	$user = JFactory::getUser();
	if ($user->username == 'admin')
	{
	echo $form->submitButton; 
	}
    ?>

Obviously that is only setup for the admin login but you can amend it for a group or additional users.
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top