 			arrayAppend(aPagesSorted, aPages[i].href);
 		}
 		arraySort(aPagesSorted,"textnocase","asc");
-	}					
+	}	
+	
+	
+	// check if the user is allowed to edit pages
+	stAccessMap = oUser.getAccessMap();
+	allowedToEditPages = stAccessMap.pages;
 </cfscript>
 
 <cfquery name="qryAccounts" dbtype="query">

<cfset aPages = request.requestState.aPages>
<cfset hpRoot = request.requestState.hpRoot>
<cfset path = request.requestState.path>

<cfscript>
	coldbricksRoot = "/coldBricks/";

					</tr>
					<tr>
						<td><b>Name:</b></td>
						<td><input type="text" name="name" value="#getFileFromPath(path)#" size="50" style="width:270px;" class="formField" disabled>
							<cfif allowedToEditPages>
								<a href="index.cfm?event=ehSite.doLoadAccountPage&account=#account#&page=#pageName#.xml"><img src="images/page_edit.png" align="absmiddle" border="0"> Edit Page</a>
							</cfif>
						</td>
					</tr>
					<tr>
						<td><b>Type:</b></td>
