Thanks for the aswer.
Though I still have a problem to solve. I’ll ask it in most simple way.
Requesting
/connectors/security/user.php?action=getList
while logged as
admin outputs following JSON Object:
({"total":"2","results":[{"id":1,"internalKey":1,"fullname":"Default Admin User","role":1,"email":"[email protected]","phone":"","mobilephone":"","blocked":false,"blockeduntil":0,"blockedafter":0,"logincount":16,"lastlogin":1245335496,"thislogin":1245341096,"failedlogincount":0,"sessionid":"f7be67181b3e520baf17c09f4739c595","dob":0,"gender":0,"country":"","state":"","zip":"","fax":"","photo":"","comment":"","username":"admin","password":"f81f1831a743382887e812b61549c745","cachepwd":"","class_key":"modUser","menu":[{"text":"Update User","handler":"this.update"},"-",{"text":"Remove User","handler":"this.remove"}]},
{"id":2,"internalKey":2,"fullname":"Zbigniew Szaraczek","role":1,"email":"[email protected]","phone":"","mobilephone":"","blocked":false,"blockeduntil":0,"blockedafter":0,"logincount":8,"lastlogin":1245334410,"thislogin":1245335807,"failedlogincount":0,"sessionid":"785643f079c0b2cd39cf968d3cd6fa12","dob":0,"gender":0,"country":"0","state":"","zip":"","fax":"","photo":"","comment":"","username":"szaraczek","password":"f81f1831a743382887e812b61549c745","cachepwd":"","class_key":"modUser","menu":[{"text":"Update User","handler":"this.update"},"-",{"text":"Remove User","handler":"this.remove"}]}]})
while being logged as "szaraczek" user outputs:
{"success":false,"message":"Permission denied!","total":0,"data":[],"object":[]}
I want to give to
"szaraczek" user permission to view, edit, add, delete users same as admin has.
In other words I want f.e. that if someone is logged as
"szaraczek" user and "opens" (AJAX request)
/connectors/security/user.php?action=getList the full JSON object with all users should be outputted.
Could it be done just with existing security system. How to set up "szaraczek" permissions, contexts
Will be veery, very grateful for help