PermissionMixins

Description

Reusable permission methods for MerjentApp templates.

Methods for determining user permission levels and applying field restrictions. Methods are bound to the MerjentApp instance via templates (see DefaultTemplate).

Usage: These methods are not called directly. They are bound to app methods by a template function:

// In a template:
			app.getPermissions = PermissionMixins.fourTier.bind(app);
			app.baseUpdatePermission = PermissionMixins.standardUpdate.bind(app);
			
Details