File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ impl DataStore {
274
274
/// for example.
275
275
/// * If a code path is only doing this lookup to get the id so that it can
276
276
/// look up something else inside the Organization, then the database
277
- /// record is not record -- and neither is an authz check on the
277
+ /// record is not required -- and neither is an authz check on the
278
278
/// Organization. Callers usually use `organization_lookup_id()` for
279
279
/// this. That function does not expose the database row to the caller.
280
280
///
@@ -475,7 +475,7 @@ impl DataStore {
475
475
) -> UpdateResult < Organization > {
476
476
use db:: schema:: organization:: dsl;
477
477
478
- let ( authz_org, _ ) = self . organization_lookup_noauthz ( name) . await ?;
478
+ let authz_org = self . organization_lookup_id ( name) . await ?;
479
479
opctx. authorize ( authz:: Action :: Modify , & authz_org) . await ?;
480
480
481
481
diesel:: update ( dsl:: organization)
You can’t perform that action at this time.
0 commit comments