Browse Source

Adjustment to demo mode restrictions

Kristan Kenney 6 years ago
parent
commit
57e1bb0da9
2 changed files with 3 additions and 4 deletions
  1. 0 4
      bin/v-add-mail-account
  2. 3 0
      bin/v-delete-dns-domain

+ 0 - 4
bin/v-add-mail-account

@@ -44,10 +44,6 @@ is_package_full 'MAIL_ACCOUNTS'
 is_mail_new "$account"
 is_mail_new "$account"
 is_password_valid
 is_password_valid
 
 
-
-# Perform verification if read-only mode is enabled
-check_hestia_demo_mode
-
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 3 - 0
bin/v-delete-dns-domain

@@ -34,6 +34,9 @@ is_object_valid 'dns' 'DOMAIN' "$domain"
 is_object_unsuspended 'dns' 'DOMAIN' "$domain"
 is_object_unsuspended 'dns' 'DOMAIN' "$domain"
 
 
 
 
+# Perform verification if read-only mode is enabled
+check_hestia_demo_mode
+
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#