XF 1.5 How to set moderator rights through outside CMS

Erriour

New member
I have a CMS where the bridge installed. I can give status to user brcause it's easy. But only status without rights isn't cool. But I need to issue the rights too.
I see that there is two tables in database describe this: xf_moderator_content and xf_moderator. Both tables have BLOB files (json objects).

How are these BLOB files composed? If I issue permissions from the admin panel, then in one case the json in xf_moderator is empty, and in the other there is no, with the same rights given.
I need to issue rights externally. Only through the record in the database, and not through the XenForo admin panel .
 
I understood how to add to the database. But I can't understand how the value changes in the permission_combination_id from the table xf_user?
If I delete rights from user, number from column changes to random number but if i want to grant rights the same user, number changes to previous and adds 1. How it works?
 
Top Bottom