def getaddapp(): user = root.authorized() if user != 'admin': return template('error', err="must be admin to add app") return template('appconfig/addapp')