Menu

Commit [r7604]  Maximize  Restore  History

0.11-stable: Check permissions when rendering wiki links so that resources not accessible to a user don't appear as a quickjump result.

More precisely, this changeset fixes attachment, ticket, milestone, changset and changelog links. Wiki links already had the permission check. Source browser links are '''not''' fixed, as the permissions to be checked depend on the resource type (file or directory).

The rendering of wiki links to resources that are either not existing or inaccessible is also changed to remove the `href=` attribute, as they would lead to an error page anyway. The exceptions are wiki page links (to allow creating the page) and milestones (which should grow the same functionality shortly).

Closes #7655.

rblank 2008-10-23

changed /branches/0.11-stable/trac/attachment.py
changed /branches/0.11-stable/trac/htdocs/css/trac.css
changed /branches/0.11-stable/trac/tests/functional/tester.py
changed /branches/0.11-stable/trac/tests/wikisyntax.py
changed /branches/0.11-stable/trac/ticket/api.py
changed /branches/0.11-stable/trac/ticket/roadmap.py
changed /branches/0.11-stable/trac/ticket/tests/wikisyntax.py
changed /branches/0.11-stable/trac/versioncontrol/web_ui/changeset.py
changed /branches/0.11-stable/trac/versioncontrol/web_ui/log.py
changed /branches/0.11-stable/trac/versioncontrol/web_ui/tests/wikisyntax.py
changed /branches/0.11-stable/trac/wiki/api.py
/branches/0.11-stable/trac/attachment.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/htdocs/css/trac.css Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/tests/functional/tester.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/ticket/api.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/ticket/roadmap.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/ticket/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/versioncontrol/web_ui/changeset.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/versioncontrol/web_ui/log.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/versioncontrol/web_ui/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/wiki/api.py Diff Switch to side-by-side view
Loading...