Protecting Template Data
From TMM Wiki
Jump to navigationJump to searchThe printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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}