feat: Add Administrator permission to seeding process and ensure permissions are seeded even when other seeds are skipped

This commit is contained in:
MythEclipse
2025-09-26 01:35:06 +07:00
parent 14690a378f
commit 1bb2d6a419
2 changed files with 7 additions and 0 deletions
@@ -54,6 +54,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
PermissionsEnum::UpdateMentors,
PermissionsEnum::VerifyMentors,
PermissionsEnum::DeleteMentors,
PermissionsEnum::Administrator,
] {
db.query("CREATE type::thing('app_permissions', $id) CONTENT $data")
.bind(("id", permission.id()))