LIMITING ACCESS TO RECORDS BY AUTHOR - Jun 13th, 2011


To limit access to only those records in a multi-record section that were created by the current user, since each record
is flagged with the user number of the user that created it (['createdByUserNum']), you can use this approach:

<?php foreach ($your_sectionRecords as $record): ?>
<?php if ($record['createdByUserNum']== @$CURRENT_USER['num']): ?>

<!-- the fields that you want to show go here -->

<?php endif ?>
<?php endforeach ?>




The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service