summaryrefslogtreecommitdiff
path: root/service/auth-service.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'service/auth-service.lisp')
-rw-r--r--service/auth-service.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/auth-service.lisp b/service/auth-service.lisp
index e6f3ef4..e5e7e27 100644
--- a/service/auth-service.lisp
+++ b/service/auth-service.lisp
@@ -14,6 +14,6 @@
(defmacro with-auth ((instance auth-service) &body body)
`(let ((,instance (make-instance ',auth-service)))
- (when (null (errormsg ,instance))
+ (when (string= (session-value :permissions) "admin")
,@body)
(org-ckons-json::objects-to-json `(,,instance))))