#560: Certain Role Breaks Invenio
------------------------+----------------------
  Reporter:  hweiler    |      Owner:  skaplun
      Type:  defect     |     Status:  in_merge
  Priority:  minor      |  Milestone:  v1.0
 Component:  WebAccess  |    Version:
Resolution:             |   Keywords:  guest
------------------------+----------------------

Comment (by skaplun):

 That's because `{'uid: -1}` is not really a well formed user description.
 Since my FireRole rule specifies to use the field '''guest''', and this is
 not in the dictionary you provide, the row is skipped, and either the
 '''allow all''' or '''deny all''' is triggered in all cases.

 If you want to test with a real guest user just use
 `collect_user_info(None)`. This will return a ''user_info'' dictionary
 pre-filled with all the default fields, including the '''guest''' field.

 Cheers!
      Sam

-- 
Ticket URL: <http://invenio-software.org/ticket/560#comment:4>
Invenio <http://invenio-software.org>

Reply via email to