Best way to store permissions for the user account?
问题 I have permission records that are tied to each account in my application. Each account can have one or multiple permission records based on account type. Here is example: <cfquery name="qryUserPerm" datasource="#Application.dsn#"> SELECT AccessType, AccessLevel, State, City, Building FROM Permissions WHERE AccountID = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(session.AccountID)#"> </cfquery> Query above will produce data like this for one of the accounts: RecID AccountID