Commit b8fe8725de93b20a7a1dd0d5f731428f9158662e

Thomas de Grivel 2015-03-20T15:44:35

NIL user is anonymous.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/can.lisp b/can.lisp
index b17831f..07032a5 100644
--- a/can.lisp
+++ b/can.lisp
@@ -66,7 +66,7 @@
 
     (defun can (action &optional (object :all) (user :anonymous))
       (if can-lambda
-	  (funcall can-lambda action object user)
+	  (funcall can-lambda action object (or user :anonymous))
 	  (error "Please call CAN:COMPILE-RULES.")))
 
     (defun compile-rules ()