Fix commit signature error when project is disabled
When a project is disabled, visiting the home page would show, "An error occurred while loading commit signatures". This change checks that the user has permission to view the project to avoid unnecessary GPG signature lookups.
Closes #50903 (closed)
Edited by Stan Hu