mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 17:30:40 +00:00
fix(pairing): treat operator.admin as satisfying operator.write
This commit is contained in:
@@ -22,6 +22,9 @@ function operatorScopeSatisfied(requestedScope: string, granted: Set<string>): b
|
||||
granted.has(OPERATOR_ADMIN_SCOPE)
|
||||
);
|
||||
}
|
||||
if (requestedScope === OPERATOR_WRITE_SCOPE) {
|
||||
return granted.has(OPERATOR_WRITE_SCOPE) || granted.has(OPERATOR_ADMIN_SCOPE);
|
||||
}
|
||||
return granted.has(requestedScope);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user