Hello dennyv90, I'm testing your module, Everything seems to work fine except that everytime I edit the user permissions from luci the file /etc/config/users gets corrupted by adding a DOS WINDOWS like Break line ^M
config user 'user'
option username 'user'
option password 'user'
option node '^M
network^M
^M
^M
I've looked in all the files inside the your module but I could not find where the ^M was coming from.
Any ideas?