nethesis / dev

Nethesis issue tracker
http://www.nethesis.it
4 stars 1 forks source link

Enhance authorizations management and sync cache with these #6100

Closed SebastianMB-IT closed 2 years ago

SebastianMB-IT commented 2 years ago

After changing the user's profile settings, the new authorizations must be applied to the data shown inside the report, it isn't acceptable for the users to see changes after hours. Furthermore in some cases the authorizations are not correctly applied.

Actual behavior

Proposed solution

Components

nethvoice-report nethserver-nethvoice14

SebastianMB-IT commented 2 years ago

The following table can be usefull to understand the users authorizations behavior:

AUTHORIZATIONS TABLE          
/opt/nethvoice-report/api/user_authorizations.json NV QUEUES UI QUEUES API CDR UI CDR API
{ username: marco, queues: [], groups: [], agents: [], users: [] }, QManager OFF - CDR OFF - CDR Groups OFF - CDR Global OFF HIDDEN (access denied on login) ../login (access denied) HIDDEN (access denied on login) ../login (access denied)
{ username: marco, queues: [], groups: [], agents: [], users: [ "220" ], }, QManager OFF - CDR ON - CDR Groups OFF - CDR Global OFF HIDDEN ../graph/queues/.. (access denied) SHOWN (only personal) ../graph/cdr/personal/.. (access granted) ../graph/cdr/pbx/.. (access denied)
{ username: marco, queues: [], groups: [ "Developers","NG","Support" ], agents: [], users: [ "220", "310", "221", "222", "223", "224", "225", "212","92212", "213", "91213", "211", "92211" ] }, QManager OFF - CDR ON - CDR Groups ON - CDR Global OFF HIDDEN ../graph/queues/.. (access denied) SHOWN ../graph/cdr/personal/.. (access granted) ../graph/cdr/pbx/.. (access granted only for listed users or groups data)
{ username: marco, queues: [], groups: [ "Developers","NG","Support" ], agents: [], users: [ "220", "310", "221", "222", "223", "224", "225", "212","92212", "213", "91213", "211", "92211" ] }, QManager OFF - CDR ON - CDR Groups OFF - CDR Global ON HIDDEN ../graph/queues/.. (access denied) SHOWN ../graph/cdr/personal/.. (access granted) ../graph/cdr/pbx/.. (access granted only for listed users or groups data)
{ username: marco, queues: [], groups: [ "Developers","NG","Support" ], agents: [], users: [ "220", "310", "221", "222", "223", "224", "225", "212","92212", "213", "91213", "211", "92211" ] }, QManager OFF - CDR ON - CDR Groups ON - CDR Global ON HIDDEN ../graph/queues/.. (access denied) SHOWN ../graph/cdr/personal/.. (access granted) ../graph/cdr/pbx/.. (access granted only for listed users or groups data)
{ username: marco, queues: [ 401, 402, 404, 405 ], groups: [], agents: [ "foo 5" ,"foo 6" ,"foo 7" ,"foo 8" ,"foo 2" ], users: [] }, QManager ON - CDR OFF - CDR Groups OFF - CDR Global OFF SHOWN ../graph/queues/.. (access granted only for listed agents or queues data) HIDDEN ../graph/cdr/.. (access denied)
{ username: marco, queues: [ 401, 402, 404, 405 ], groups: [ "Developers","NG","Support" ], agents: [ "foo 5", "foo 6", "foo 7", "foo 8" ,"foo 2" ], users: [ "220" ,"310" ,"221" ,"222" ,"223" ,"224" ,"225" ,"212" ,"92212" ,"213" ,"91213" ,"211" ,"92211" ] }, QManager ON CDR ON CDR Groups ON CDR Global ON SHOWN ../graph/queues/.. (access granted only for listed agents or queues data) SHOWN ../graph/cdr/personal/.. (access granted) ../graph/cdr/pbx/.. (access granted only for listed users or groups data)

Furthermore for cdr pbx sections permissions an additional behavior must be implemented:

nethbot commented 2 years ago

in 7.9.2009/nethesis-testing:

nethbot commented 2 years ago

in 7.9.2009/nethesis-testing:

nethbot commented 2 years ago

in 7.9.2009/nethesis-testing:

nethbot commented 2 years ago

in 7.9.2009/nethesis-updates:

nethbot commented 2 years ago

in 7.9.2009/nethesis-updates: