Difference between revisions of "Protecting Template Data"
From TMM Wiki
Jump to navigationJump to searchm |
(No difference)
|
Latest revision as of 14:28, 18 December 2008
NATS's five custom access options let you enable or disable parts of your administrator. You can use these options in templates yourself to enable or disable parts of your site. The value, "NO", is stored in the Smarty variables $usr_access.custom1 through $user_access.custom5 if the current admin shouldn't have access to this part of the site.
Example
To hide part of a template to administrators without access to Admin Custom 1, edit the template, admin_reports_surfer_details and put the following code around the data to hide:
{if $usr_access.custom1 != 'NO'} [Information to hide] {/if}