Max_depth for symlinks shouldn't be hard coded, but should be in settings. There are cases where symlinks need to go deeper, so consider allowing that on a case by case basis. In that case, maybe 2 settings:
SYMLINK_DEPTH_DEFAULT = 1 # default depth that symlinks are allowed, perhaps make possible to override
SYMLINK_DEPTH_MAX = 3 # absolute depth that should never be allowed
Max_depth for symlinks shouldn't be hard coded, but should be in settings. There are cases where symlinks need to go deeper, so consider allowing that on a case by case basis. In that case, maybe 2 settings: SYMLINK_DEPTH_DEFAULT = 1 # default depth that symlinks are allowed, perhaps make possible to override SYMLINK_DEPTH_MAX = 3 # absolute depth that should never be allowed