I did some more testing:
PortalSecurity.IsInRoles(_moduleSettings.AuthorizedViewRoles)
Is false as it should be true.
_moduleSettings.AuthorizedViewRoles gives 289;291;290; and the user i'm logged in with has UserRoles 11, 290, 234, 291, 567, 568.
Has the CuteEditor something to do with these values?
It's strange that there is no error after refreshing the page. And the html code is updated to database only if you refresh after the error message.
Also no error if I just write few letters and update. But if I write more error is shown.
Please help I need this working ASAP.
Thanks.