GUACAMOLE-524: Changed addStandardTokens so user.getAttributes is called
This commit is contained in:
1 parent
3d4f465c10
commit
49c3f11854
2 files changed
+2
-4
No files matched your search
-4
@@ -126,10 +126,6 @@ public class ConnectionService {
|
||||
TokenFilter tokenFilter = new TokenFilter();
|
||||
StandardTokens.addStandardTokens(tokenFilter, user);
|
||||
|
||||
// Add custom attribute tokens
|
||||
Map<String, String> attrs = user.getAttributes();
|
||||
StandardTokens.addAttributeTokens(tokenFilter, attrs);
|
||||
|
||||
// Produce connections for each readable configuration
|
||||
Map<String, Connection> connections = new HashMap<String, Connection>();
|
||||
while (results.hasMore()) {
|
||||
|
||||
@@ -171,6 +171,8 @@ public class StandardTokens {
|
||||
// Add tokens specific to credentials
|
||||
addStandardTokens(filter, user.getCredentials());
|
||||
|
||||
// Add custom attribute tokens
|
||||
addAttributeTokens(filter, user.getAttributes());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user