Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: check policy before visibility
Merged fintohaps opened 1 year ago

In the is_authorized helper, the logic checks the policy and the visibility of the repository.

If the policy is set to block, the function can return before getting the repository and the identity document. This improves the check, since the repository and identity document may be missing if the repository is blocked, so it would return a different error other than the expected unauthorized error.

fintohaps opened with revision 9c6e0171 on base d39ba83c +6 -1 1 year ago

In the is_authorized helper, the logic checks the policy and the visibility of the repository.

If the policy is set to block, the function can return before getting the repository and the identity document. This improves the check, since the repository and identity document may be missing if the repository is blocked, so it would return a different error other than the expected unauthorized error.

did:key:z6MksFqX...wzpT pushed revision 2 14c24992 on base 1d57778f +6 -1 1 year ago

Rebase.

did:key:z6MksFqX...wzpT merged revision 14c24992 at f244d89e 1 year ago