fixed quota check

only include share usage in quota check when the admin have enabled it