commit | 6ecab77d02b2b117c0275ed391174aa63f683f60 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <edwin.kempin@sap.com> | Thu Jan 16 16:11:14 2014 +0100 |
committer | Edwin Kempin <edwin.kempin@sap.com> | Thu Jan 16 16:15:31 2014 +0100 |
tree | c1793d90dc756bcfffea070675c8bdb69d00f507 | |
parent | 9c7058368226b5c08591a1f19ae4dfc5737999cb [diff] |
Check if user can read HEAD commit when resolving detached HEAD If HEAD was detached the GetHead REST endpoint refused to resolve HEAD if the user was no project owner. Instead we are now checking if the user can actually read this commit and if yes, we return it. If HEAD points to a non-existing commit we still return the commit only if the user is a project owner. Change-Id: I56c49b578516070eb3b02f22677559a0eb11b02e Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>