|
@@ -201,7 +201,7 @@ module.exports = function(crowi) {
|
|
|
|
|
|
|
|
userSchema.methods.canDeleteCompletely = function(creatorId) {
|
|
userSchema.methods.canDeleteCompletely = function(creatorId) {
|
|
|
const pageCompleteDeletionAuthority = crowi.configManager.getConfig('crowi', 'security:pageCompleteDeletionAuthority');
|
|
const pageCompleteDeletionAuthority = crowi.configManager.getConfig('crowi', 'security:pageCompleteDeletionAuthority');
|
|
|
- if (pageCompleteDeletionAuthority != null || this.admin) {
|
|
|
|
|
|
|
+ if (pageCompleteDeletionAuthority == null || this.admin) {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
if (pageCompleteDeletionAuthority === 'adminAndAuthor') {
|
|
if (pageCompleteDeletionAuthority === 'adminAndAuthor') {
|