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 b7cc366 commit a976195Copy full SHA for a976195
server/config/type.js
@@ -55,6 +55,11 @@ const ConfigType = class ConfigType {
55
// Don't preform action when soft setting is true.
56
if (softImport && !force) return false;
57
58
+ // Exit when trying to delete the super-admin role.
59
+ if (this.configPrefix === 'admin-role' && configName === 'strapi-super-admin') {
60
+ return false;
61
+ }
62
+
63
await Promise.all(this.relations.map(async ({ queryString, parentName }) => {
64
const relations = await noLimit(strapi.query(queryString), {
65
where: {
0 commit comments