Project

General

Profile

Actions

Defect #30731

closed

"View differences" buttons are shown in the repository page even without "Browse repository" permission

Added by Go MAEDA about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
SCM
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

You are not allowed to see the diff between changesets if you don't have a "Browse repository" permission. However, "View differences" buttons on RepositoriesController#show page are always shown even if you don't have the permission. In contrast, the "View differences" tab on the RepositoriesController#revision is hidden depending on the permission.

I think the buttons should be hidden if the current user does not have a "Browse repository" permission.


Files

view-diff-button@2x.png (39.4 KB) view-diff-button@2x.png Go MAEDA, 2019-02-02 03:08
fix-30731.patch (872 Bytes) fix-30731.patch Takenori TAKAKI, 2019-03-08 05:23
test-for-30731.diff (916 Bytes) test-for-30731.diff Go MAEDA, 2019-03-25 09:33
Actions

Also available in: Atom PDF