diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 071c653a..40a283ad 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nitro_repo" -version = "1.0.0" +version = "1.0.1" authors = ["Wyatt Jacob Herkamp "] edition = "2021" build = "build.rs" diff --git a/backend/src/system/permissions/mod.rs b/backend/src/system/permissions/mod.rs index 5d7744d4..70405025 100644 --- a/backend/src/system/permissions/mod.rs +++ b/backend/src/system/permissions/mod.rs @@ -47,13 +47,13 @@ pub struct UserPermissions { impl UserPermissions { pub fn can_access_repository(&self) -> bool { - return self.admin || self.repository_manager; + self.admin || self.repository_manager } } impl FromSql for UserPermissions { fn from_sql( - bytes: Option<&::RawValue>, + bytes: Option<&::RawValue>, ) -> deserialize::Result { let t = >::from_sql(bytes)?; let result: UserPermissions = serde_json::from_str(t.as_str())?; @@ -74,18 +74,13 @@ pub struct RepositoryPermission { pub permissions: Vec, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Default)] pub struct RepositoryPermissionValue { pub policy: Option, #[serde(rename = "type")] pub repo_type: Option, } -impl Default for RepositoryPermission { - fn default() -> Self { - RepositoryPermission { permissions: vec![] } - } -} pub fn can_deploy( diff --git a/frontend/package-lock.json b/frontend/package-lock.json index ae2d4ef1..cbafd32e 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "site", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "site", - "version": "1.0.0", + "version": "1.0.1", "dependencies": { "@kyvg/vue3-notification": "^2.3.4", "@nitro_repo/nitro_repo-api-wrapper": "file:../nitro_repo-api-wrapper", @@ -57,7 +57,7 @@ }, "../nitro_repo-api-wrapper": { "name": "@nitro_repo/nitro_repo-api-wrapper", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "dependencies": { "axios": "^0.27.2", diff --git a/frontend/package.json b/frontend/package.json index 02a044b9..ba9f480f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "site", - "version": "1.0.0", + "version": "1.0.1", "private": true, "scripts": { "dev": "vite", diff --git a/nitro_repo-api-wrapper/package-lock.json b/nitro_repo-api-wrapper/package-lock.json index 457b2372..d8ab471e 100644 --- a/nitro_repo-api-wrapper/package-lock.json +++ b/nitro_repo-api-wrapper/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nitro_repo/nitro_repo-api-wrapper", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@nitro_repo/nitro_repo-api-wrapper", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "dependencies": { "axios": "^0.27.2", diff --git a/nitro_repo-api-wrapper/package.json b/nitro_repo-api-wrapper/package.json index 52e1c89f..4061b889 100644 --- a/nitro_repo-api-wrapper/package.json +++ b/nitro_repo-api-wrapper/package.json @@ -1,6 +1,6 @@ { "name": "@nitro_repo/nitro_repo-api-wrapper", - "version": "1.0.0", + "version": "1.0.1", "description": "The Implementation of the Nitro_Repo API in Typescript", "author": "Wyatt Jacob Herkamp", "license": "MIT",