if inheriting rights are for files (not subdirs) then this is incorrect. if inheriting rights are for subdirs too, then we need to change the implementation.
reserve_modules