diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2020-12-24 15:38:07 -0700 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2020-12-24 15:38:07 -0700 |
| commit | e54116790e06c0ec0ab0c799d62083df32c7d12a (patch) | |
| tree | d0ac415d50f95084f620979735a8f63d496c4565 /service/auth-service.lisp | |
| parent | 964704c412aa50f697e3153514c8c3c4e6704c4b (diff) | |
login now forwards to /inetorg/view
Diffstat (limited to 'service/auth-service.lisp')
| -rw-r--r-- | service/auth-service.lisp | 2 |
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)))) |
