Skip to content

Commit

Permalink
Allow sunshineRegiment users to create user rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
oetherington committed Oct 4, 2023
1 parent fc67cb6 commit a4cbcaa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/lesswrong/lib/collections/userRateLimits/index.ts
Expand Up @@ -2,3 +2,4 @@ export * from './collection';
import './fragments';
import './views';
import './helpers';
import './permissions';
10 changes: 10 additions & 0 deletions packages/lesswrong/lib/collections/userRateLimits/permissions.ts
@@ -0,0 +1,10 @@
import { adminsGroup } from "../../vulcan-users";
import { sunshineRegimentGroup } from "../../permissions";

const actions = [
"userratelimits.new",
"userratelimits.edit.all",
];

adminsGroup.can(actions);
sunshineRegimentGroup.can(actions);

0 comments on commit a4cbcaa

Please sign in to comment.