Respect session read-only in SRM

Ticket: 7842
Acked-by: Al Rossi
Target: 2.6
Require-book: no
Require-notes: yes
Merge pull request #104 from DmitryLitvintsev/fix/2.6/fix_srm_readonly

Respect session read-only in SRM