Website user benefit

Overview

Website benefits can be tagged against website users (see Website user). Pages in the site tree, assets in the asset manager, and other custom access areas can then be tagged with member benefits to control users' access to multiple areas and actions in the site through their benefits. This is also a useful object to extend so that you could add other types of benefits other than page / asset access. For example, you could have a disk space field that can tell the system how much disk space a user has in an uploads folder or some such.

Object name website_benefit
Table name psys_website_benefit
Path /preside-objects/websiteUserManagement/website_benefit.cfc

Properties

property name="label" uniqueindexes="benefit_name";
property name="priority"    type="numeric" dbtype="int"                      required=false default="method:calculatePriority";
property name="description" type="string"  dbtype="varchar" maxLength="200"  required=false;

property name="combined_benefits" relationship="many-to-many" relatedTo="website_benefit" relatedVia="website_benefit_combined_benefits" relatedViaSourceFk="source_website_benefit" relatedViaTargetFk="target_website_benefit";
property name="combined_benefits_are_inclusive" type="boolean" dbtype="boolean" required=false default=false;