HBASE-10863 Scan doesn't return rows for user who has authorization by visibility label

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1582979 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-03-29 10:32:56 +00:00
parent a2f6809560
commit a3e66356fe
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class DefaultScanLabelGenerator implements ScanLabelGenerator {
public List<String> getLabels(User user, Authorizations authorizations) {
if (authorizations != null) {
List<String> labels = authorizations.getLabels();
String userName = user.getName();
String userName = user.getShortName();
List<String> auths = this.labelsManager.getAuths(userName);
return dropLabelsNotInUserAuths(labels, auths, userName);
}