mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
hardering user validation
This commit is contained in:
parent
f0b47b3220
commit
bb44f4197b
1 changed files with 2 additions and 1 deletions
|
@ -213,7 +213,8 @@ is_object_new() {
|
||||||
# Check if object is valid
|
# Check if object is valid
|
||||||
is_object_valid() {
|
is_object_valid() {
|
||||||
if [ $2 = 'USER' ]; then
|
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"
|
check_result $E_NOTEXIST "$1 $3 doesn't exist"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue