Closed (fixed)
Project:
Git default branch
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2011 at 22:26 UTC
Updated:
14 Dec 2011 at 02:00 UTC
Instead of returning in the page callback, the checks on $project->versioncontrol_project and $repo should be in an access callback. That way, the tab won't show at all for projects it doesn't apply to.
You'll want to be sure to also check project_user_access() in your access callback.
Comments
Comment #1
Niklas Fiekas commentedCommitted http://drupalcode.org/project/project_git_default_branch.git/commitdiff/....