summaryrefslogtreecommitdiff
path: root/service/auth-service.lisp
diff options
context:
space:
mode:
authorckonstanski <ckonstanski@pippiandcarlos.com>2020-12-22 09:19:28 -0700
committerckonstanski <ckonstanski@pippiandcarlos.com>2020-12-22 09:19:28 -0700
commite5947122bae1115b024be354ace6885cb360037e (patch)
tree0384007798115997a8e04517b1763685303253f6 /service/auth-service.lisp
parent0ed1cba1b39daaf8eef693233f081b455c88dece (diff)
updated to latest bootstrap
Diffstat (limited to 'service/auth-service.lisp')
-rw-r--r--service/auth-service.lisp6
1 files changed, 3 insertions, 3 deletions
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))))