Skip to content

Commit 0678bde

Browse files
author
Kristan Kenney
committed
Fix check in subdomain enforcement routine
1 parent 20bfefc commit 0678bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ is_base_domain_owner(){
916916
if [ "$object" != "none" ]; then
917917
get_base_domain $object
918918
web=$(grep -F -H -h "DOMAIN='$basedomain'" $HESTIA/data/users/*/web.conf);
919-
if [ $ENFORCE_SUBDOMAIN_OWNERSHIP = "no" ]; then
919+
if [ $ENFORCE_SUBDOMAIN_OWNERSHIP = "yes" ]; then
920920
if [ ! -z "$web" ]; then
921921
parse_object_kv_list "$web"
922922
if [ -z "$ALLOW_USERS" ] || [ "$ALLOW_USERS" != "yes" ]; then

0 commit comments

Comments
 (0)