Description

At the moment this gives True independent if this page exists.

 request.write(str(request.user.may.read('ThisPageDoesNotExist')))

This has (or seems to me) no effect to current code but I have always to check in some code first if the page exists.

I don't know if this behaviour is wanted or if code would be broken if this will be changed to False.

My opinion is it should return False a non existing page could not be readable. -- ReimarBauer 2006-01-14 14:12:03

Steps to reproduce

  1. do this...

Example

Details

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Workaround

Discussion

"may" is about "having the right to", not about whether it will be possible in the end.

If we would change the result of may.read to False for nonexisting pages, it maybe would say "you are not allowed to read this" although there is nothing there at all.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/request.user.may.read(PageDoesNotExist) (last edited 2007-10-29 19:12:03 by localhost)