LCOV - code coverage report
Current view: top level - storage_controller/src - auth.rs (source / functions) Coverage Total Hit
Test: 465a86b0c1fda0069b3e0f6c1c126e6b635a1f72.info Lines: 0.0 % 7 0
Test Date: 2024-06-25 15:47:26 Functions: 0.0 % 1 0

            Line data    Source code
       1              : use utils::auth::{AuthError, Claims, Scope};
       2              : 
       3            0 : pub fn check_permission(claims: &Claims, required_scope: Scope) -> Result<(), AuthError> {
       4            0 :     if claims.scope != required_scope {
       5            0 :         return Err(AuthError("Scope mismatch. Permission denied".into()));
       6            0 :     }
       7            0 : 
       8            0 :     Ok(())
       9            0 : }
        

Generated by: LCOV version 2.1-beta