addPage (function)

Return to Knowledgebase

Purpose

Add a permission level to a page

Location

users/helpers/permissions.php

Parameters

# Parameter Data Type Required Description
1 $page Yes undocumented
2 $permission Yes undocumented

Example

addPage(28,2);

Further Documentation:

Add a permission level to a page in the database. Must be called by the page id. This is usually done in the UI of UserSpice and this function is not really used by developers.