Skip to content
⌘K
Explore
Docs
Sign in
Sign up
flagon-io
/
g1t
public
Star
0
Overview
Code
Issues
5
Pull requests
1
Agents
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
Commit
API: writes() only for tests
syntaqx
committed
2d ago
Parent
cae7490
Browse files
60a9f95e21d7
1
file
+2
−1
0/1 viewed
Collapse all
Unified
Split
apps/api/src/token_policy.rs
+2
−1
View
Blame
Viewed
67
67
}
68
68
}
69
69
70
−
/// Whether it changes anything.
70
+
/// Whether it changes anything: checked against the scope table in tests.
71
+
#[cfg(test)]
71
72
pub fn writes(self) -> bool {
72
73
matches!(self, TokenOp::SetTokenPolicy | TokenOp::ReviewTokenRequest | TokenOp::RevokeMemberToken)
73
74
}