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:
parent
a2f6809560
commit
a3e66356fe
@ -58,7 +58,7 @@ public class DefaultScanLabelGenerator implements ScanLabelGenerator {
|
|||||||
public List<String> getLabels(User user, Authorizations authorizations) {
|
public List<String> getLabels(User user, Authorizations authorizations) {
|
||||||
if (authorizations != null) {
|
if (authorizations != null) {
|
||||||
List<String> labels = authorizations.getLabels();
|
List<String> labels = authorizations.getLabels();
|
||||||
String userName = user.getName();
|
String userName = user.getShortName();
|
||||||
List<String> auths = this.labelsManager.getAuths(userName);
|
List<String> auths = this.labelsManager.getAuths(userName);
|
||||||
return dropLabelsNotInUserAuths(labels, auths, userName);
|
return dropLabelsNotInUserAuths(labels, auths, userName);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user