GUACAMOLE-696: Merge changes taking database groups into account with respect to database objects when user is otherwise external to the database.

This commit is contained in:
Mike Jumper
2019-05-05 19:36:37 -07:00
committed by GitHub

View File

@@ -19,6 +19,7 @@
package org.apache.guacamole.auth.jdbc.user;
import com.google.common.collect.Sets;
import java.util.Collections;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
@@ -169,4 +170,10 @@ public class ModeledAuthenticatedUser extends RemoteAuthenticatedUser {
user.setIdentifier(identifier);
}
@Override
public Set<String> getEffectiveUserGroups() {
return Sets.union(user.getEffectiveUserGroups(),
super.getEffectiveUserGroups());
}
}