Ver Fonte

fix: use dots instead of colon for permission separator for now to fix tests

Kristian Vos há 8 meses atrás
pai
commit
fce0f8911a

+ 8 - 8
backend/src/modules/DataModule/models/users/permissions.ts

@@ -192,20 +192,20 @@ const admin = {
 	// 	: {})
 
 	"event.data.minifiedUsers.created": true,
-	"event.data.minifiedUsers.updated:*": true,
-	"event.data.minifiedUsers.deleted:*": true,
+	"event.data.minifiedUsers.updated.*": true,
+	"event.data.minifiedUsers.deleted.*": true,
 
 	"event.data.news.created": true,
-	"event.data.news.updated:*": true,
-	"event.data.news.deleted:*": true,
+	"event.data.news.updated.*": true,
+	"event.data.news.deleted.*": true,
 
 	"event.data.stations.created": true,
-	"event.data.stations.updated:*": true,
-	"event.data.stations.deleted:*": true,
+	"event.data.stations.updated.*": true,
+	"event.data.stations.deleted.*": true,
 
 	"event.data.users.created": true,
-	"event.data.users.updated:*": true,
-	"event.data.users.deleted:*": true
+	"event.data.users.updated.*": true,
+	"event.data.users.deleted.*": true
 };
 
 const permissions: Record<