Skip to content
Permalink
Browse files

hardering user validation

  • Loading branch information...
serghey-rodin committed Jul 30, 2019
1 parent f0b47b3 commit bb44f4197b4e5de219bc00197f89517c7e92bc2a
Showing with 2 additions and 1 deletion.
  1. +2 −1 func/main.sh
@@ -213,7 +213,8 @@ is_object_new() {
# Check if object is valid
is_object_valid() {
if [ $2 = 'USER' ]; then
if [ ! -d "$VESTA/data/users/$3" ]; then
user_vst_dir=$(basename $3)
if [ ! -d "$VESTA/data/users/$user_vst_dir" ]; then
check_result $E_NOTEXIST "$1 $3 doesn't exist"
fi
else

0 comments on commit bb44f41

Please sign in to comment.
You can’t perform that action at this time.