Function check_perm_file
Source pub fn check_perm_file(
action: &'static str,
) -> impl Fn(State<App>, IdTag, TnId, OptionalAuth, Path<String>, Request, Next) -> PermissionCheckOutput + Clone
Expand description
Middleware factory for file permission checks
Returns a middleware function that validates file permissions via ABAC
§Arguments
action - The permission action to check (e.g., “read”, “write”)
§Returns
A cloneable middleware function with return type PermissionCheckOutput