Modify

Opened 17 years ago

Closed 12 years ago

Last modified 12 years ago

#1631 closed enhancement (wontfix)

Options request: redirection page, anonymous permissions

Reported by: anonymous Owned by: Anton Graham
Priority: normal Component: AuthRequiredPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Request that redirection page can be specified - for example, if anonymous is allowed to view wiki but not submit tickets, then it would be nice to redirect to wiki page instead of login.

Also, if menu item is allowed for anonymous, should not redirect at all.

Attachments (0)

Change History (4)

comment:1 Changed 17 years ago by Anton Graham

This would require permissions checking which is not done at all by the existing plugin. I will take the request under advisement, but I have a couple old tickets that I haven't had time to work on yet

comment:2 Changed 16 years ago by matthew.pusateri@…

What I did to work around this, was to add /wiki and /search to the allowable pages. Our anonymous only has wiki_view and search_view rights. We then protect everything else with permissions or privatewiki pages. Then what I did is on our apache server I did a redirect from / to /wiki That way the the first wikistart page always was allowed.

def get_navigation_items(self, req):
        if ((req.authname and req.authname != 'anonymous') or \
            req.path_info.startswith('/login') or \
            req.path_info.startswith('/reset_password') or \
            req.path_info.startswith('/register') or \
            req.path_info.startswith('/search') or \
            req.path_info.startswith('/wiki')):
            return []

comment:3 Changed 12 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

comment:4 Changed 12 years ago by Ryan J Ollos

Plugin is deprecated. See the PermRedirectPlugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Anton Graham.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.