Skip to content

Commit

Permalink
ASAP-813 Allow only lab membership creation on the CMS (#4475)
Browse files Browse the repository at this point in the history
* ASAP-813 Allow only lab membership creation on the CMS

* Update packages/contentful/migrations/crn/users/20241213103301-remove-labs-link-existing-entries.js
  • Loading branch information
gabiayako authored Dec 13, 2024
1 parent 2df16be commit e863875
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports.description = 'Allow only creation of lab membership';

module.exports.up = (migration) => {
const users = migration.editContentType('users');

users.changeFieldControl('labs', 'builtin', 'entryLinksEditor', {
showLinkEntityAction: false,
showCreateEntityAction: true,
});
};

module.exports.down = (migration) => {
const users = migration.editContentType('users');

users.changeFieldControl('labs', 'builtin', 'entryLinksEditor', {
showLinkEntityAction: true,
showCreateEntityAction: true,
});
};

0 comments on commit e863875

Please sign in to comment.