Fix right management in agent modules. closes #2720