SproutCMS

This is the code documentation for the SproutCMS project

function checkRecordAccess()

Checks that an admin user has access to an individual record

Usage

bool $AdminController->checkRecordAccess ( ManagedAdminController $ctlr , int $item_id );

Arguments

  1. ManagedAdminController $ctlr
    The controller which manages the table containing the record
  2. int $item_id
    The id of the row to be edited/deleted

Return value

  • bool
    True if access allowed