@psychobunny thanks for your reply!
My plugin is not open source because i havent finished yet.. And now i have lost my plugin due to some computer problems... I did a super simple prototype where the user can mention other users inside of special tags, like bbcodes. Example:
When a topic is requested, the "filter:privileges.topics.get" hook function of my plugin is called, and it search the "[admins]" tag and, if the user that request the topic is in the admins tag, my plugin set "editable" privilege to true. But this privilege is not the proper privilege to do that..
I have thought to use websockets, load the posts editor and send the edited information over websockets and manage the request in the server, cheking if the actual user have privileges to do it (checking the [admins] tag). But i havent tried to do it, i will try soon
Is possible to open the composer with some function??