On Mon, 2006-07-31 at 15:25 -0400, Rob Wilkerson wrote: > I'm currently working on scripting some changes to the default > settings for a ticket. In other words, setting the initial values in > a shell script. To test my changes, I'm regularly in and out of the > New Ticket interface and am frequently attempting to logout directly > from this interface. The problem is that I'm getting a permissions > error: > > Permission Denied > > TICKET_CREATE privileges are required to perform this operation > > Again, this is displayed when I click the 'Logout' link from the New > Ticket page. Has anyone else seen this? > > I'm running Trac 0.9.6 on FC5/Apache 2.2.x. One thing to note: > anonymous users do *not* have permissions to create a new ticket. I > suspect that this is the problem. It's not the logout, but the fact > that the page isn't redirected when I do so. When the page reloads > without authentication credentials the error appears.
You *are* redirected after you logout, you're just redirected back to the same page you were viewing before logging out. So, since when you log out you no longer have permission to view the "New Ticket" page you'll see that message. > This makes sense in my head, but can anyone confirm? Is there a > better way to handle this condition within the system? Such as? I think it's generally better to return the user to the same page instead of always returning them to the home page. It's even possible that when logging out the user will have no permissions, so they may not even have permission to view the home page. -- Matthew Good <[EMAIL PROTECTED]> _______________________________________________ Trac mailing list [email protected] http://lists.edgewall.com/mailman/listinfo/trac
