Skip to content

Commit

Permalink
chore: adds new migration to remove view-history permission
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-a-pelegrino committed Aug 14, 2024
1 parent 76f714a commit 3c4e959
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/meteor/server/startup/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ import './v300';
import './v301';
import './v303';
import './v304';
import './v305';

export * from './xrun';
10 changes: 10 additions & 0 deletions apps/meteor/server/startup/migrations/v305.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Permissions } from '@rocket.chat/models';

import { addMigration } from '../../lib/migrations';

addMigration({
version: 305,
async up() {
await Permissions.deleteOne({ _id: 'view-history' });
},
});

0 comments on commit 3c4e959

Please sign in to comment.