Skip to content

Commit

Permalink
hardering user validation
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Jul 30, 2019
1 parent f0b47b3 commit bb44f41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion func/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb44f41

Please sign in to comment.