Remove from the views elements which users can't really interact with

Bug #1421657 reported by Caio Begotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Capomastro
Triaged
Medium
Unassigned

Bug Description

Today we display navbar links for projects, dependencies and jenkins servers to anyone, right in the login view, without it being necessary. We should shrink the navbar to the minimum until the user is authenticated, specially because they will be dumbly redirected if they try to access those links anyway.

Also, we should remove the jenkins entry from the navbar for all users except for Django's superusers because no one can (or should) manage the jenkins servers. Regular users should not see that, not even staff users should be able to see it IMHO.

Finally, we should not display create, edit and delete buttons after table lists with projects and dependencies if the user has no access to use those. In theory only staff and superusers should see those buttons. Regular users can only interact with builds (including the build buttons to trigger a new run, of course).

Revision history for this message
Daniel Manrique (roadmr) wrote :

I think this is pretty clear, so it's just about making views check permissions and act accordingly. Testing is going to be the most fun part of this :)

Changed in capomastro:
milestone: none → 2015-05
status: New → Triaged
importance: Undecided → Medium
Daniel Manrique (roadmr)
Changed in capomastro:
milestone: 2015-05 → 2015-07
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.