#5595 closed enhancement (fixed)
Improve message displayed when BLOG_VIEW permissions not granted
| Reported by: | Ryan J Ollos | Owned by: | osimons |
|---|---|---|---|
| Priority: | normal | Component: | FullBlogPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
For the standard Trac components (e.g. tickets, reports, etc ...), when a user attempts to navigate to a page for which they don't have permissions, Trac displays a message such as:
REPORT_VIEW permissions required to view this item
However, when a user navigate to /blog, but doesn't have BLOG_VIEW permissions, the message is:
No handler matched request to /blog
It would be nice if this message read:
BLOG_VIEW permissions required to view this item
Its a very minor thing, which is why I'm posting it as an enhancement. I might try to work on it since I want to learn more about the Trac permissions scheme.
Attachments (0)
Change History (6)
comment:1 Changed 16 years ago by
| Summary: | Message display when permissions not granted → Improve message displayed when BLOG_VIEW permissions not granted |
|---|
comment:2 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 follow-up: 4 Changed 16 years ago by
Thanks for the fix! This is one of the most well maintained plug-ins on trac-hacks.
comment:4 follow-up: 5 Changed 16 years ago by
comment:5 Changed 16 years ago by
comment:6 Changed 16 years ago by
I updated the FullBlogPlugin on my Trac instance, and I see the following message when accessing the blog for a user that doesn't have this permission.
BLOG_VIEW privileges are required to perform this operation on Blog:
That is perfect. Thanks!



(In [6402]) FullBlogPlugin: Deferring permission check from
match_request()toprocess_request()in order to provide a useful message. Closes #5595.