Skip to content

Commit 6f03e3c

Browse files
author
CNE Pierre FICHEPOIL
committed
1 parent b1d5780 commit 6f03e3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/java/com/arcadedb/server/security/ServerSecurityDatabaseUser.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,10 @@ public synchronized void updateFileAccess(final DatabaseInternal database, final
222222
newFileAccessMap[i] = new boolean[] { false, false, false, false };
223223

224224
final JSONObject t;
225-
if (defaultGroup.has(typeName)) {
225+
final JSONObject defaultGroupTypes = defaultGroup.getJSONObject("types");
226+
if (defaultGroupTypes.has(typeName)) {
226227
// APPLY THE FOUND TYPE FROM DEFAULT GROUP
227-
t = defaultGroup.getJSONObject(typeName);
228+
t = defaultGroupTypes.getJSONObject(typeName);
228229
} else
229230
// APPLY DEFAULT TYPE FROM DEFAULT GROUP
230231
t = defaultType;

0 commit comments

Comments
 (0)