fix: shows the correct config file update path with cli configure (#5195)

Signed-off-by: Anthony D. Mays <anthony@morganlatimer.com>
This commit is contained in:
Anthony D. Mays
2025-10-29 11:15:07 -07:00
committed by GitHub
parent 565dcb879b
commit 25789415a0
3 changed files with 51 additions and 9 deletions
+5
View File
@@ -91,6 +91,11 @@ impl PermissionManager {
self.get_permission(SMART_APPROVE_PERMISSION, principal_name)
}
/// Retrieves the config file path.
pub fn get_config_path(&self) -> &Path {
self.config_path.as_path()
}
/// Helper function to retrieve the permission level for a specific permission category and tool.
fn get_permission(&self, name: &str, principal_name: &str) -> Option<PermissionLevel> {
// Check if the permission category exists in the map