<?php
/**
 * Example Module - Items Data Loading
 *
 * Pre-loads data needed for the view.
 */

// Get current user permissions for this module
$permissions = _SLM::getSecurityAccess('example.items');

// Check permissions
$canCreate = in_array('create', $permissions);
$canUpdate = in_array('update', $permissions);
$canDelete = in_array('delete', $permissions);
$canRead = in_array('read', $permissions);
