We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e3920a commit a85708fCopy full SHA for a85708f
src/utils.ts
@@ -160,14 +160,7 @@ function rewriteAuthIfMatches(
160
permissionLevel: PermissionLevel,
161
newPermission: Name
162
): PermissionLevelType {
163
- if (permissionLevel.equals(auth)) {
164
- return PermissionLevel.from({
165
- actor: permissionLevel.actor,
166
- permission: newPermission,
167
- })
168
- }
169
- // Also rewrite PlaceholderAuth to use the session's actor with the new permission
170
- if (PlaceholderAuth.equals(auth)) {
+ if (permissionLevel.equals(auth) || PlaceholderAuth.equals(auth)) {
171
return PermissionLevel.from({
172
actor: permissionLevel.actor,
173
permission: newPermission,
0 commit comments