Neptune 1.0 Beta 3 Documentation: Secure a Table

Neptune Information

Download from RIA Forge

Secure a Table

If you have a security service registered with Neptune and Manager.cfc the you can restrict a table to be available only to users with at least one of a selected list of permissions.

This is done in the "xml" method of your ProgramManager or Records component.

Find the "table" element for the table that you want to secure and add a "permissions" attribute to it with the permissions you want to have access to that table.

Example:

<cffunction name="xml" access="public" output="yes">
<tables>
	<table entity="Photo" Specials="CreationDate,LastUpdatedDate,Sorter" permissions="Photos">
		<field
			name="PhotoImage"
			Label="Image"
			type="image"
			Folder="photos"
			MaxWidth="200"
			MaxHeight="120"
			required="true"
		/>
	</table>
</tables>
</cffunction>

Refresh your component and you are done!