瀏覽代碼

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

Kristian Vos 8 月之前
父節點
當前提交
fce0f8911a
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      backend/src/modules/DataModule/models/users/permissions.ts

+ 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<