From e5947122bae1115b024be354ace6885cb360037e Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Tue, 22 Dec 2020 09:19:28 -0700 Subject: updated to latest bootstrap --- service/auth-service.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'service/auth-service.lisp') diff --git a/service/auth-service.lisp b/service/auth-service.lisp index 2cdc7bf..24556b7 100644 --- a/service/auth-service.lisp +++ b/service/auth-service.lisp @@ -9,11 +9,11 @@ (defmethod initialize-instance :after ((auth-service auth-service) &key) (when (not (string= (session-value :permissions) "admin")) - (setf (location auth-service) "home") + (setf (location auth-service) "/home") (setf (errormsg auth-service) "You are not authorized to access this resource."))) -(defmacro with-auth ((instance form-class) &body body) - `(let ((,instance (make-instance ',form-class))) +(defmacro with-auth ((instance auth-service) &body body) + `(let ((,instance (make-instance ',auth-service))) (when (null (errormsg ,instance)) ,@body) (objects-to-json `(,,instance)))) -- cgit v1.3