Commits
Aleksejs Sestakovs authored and Vladimirs Maksimovs committed 97fa81c2becM
A...I...S. [ZBXNEXT-5878,ZBXNEXT-8532] improved performance of permission checks for hosts, templates and API objects related to them; added strict validation for host group and template parameters of host API methods * commit 'a9af3594fbadda9b4aacdafa092c0832f251173f': (107 commits) ........S. [ZBXNEXT-5878] fixed hard-coded constant A......... [ZBXNEXT-5878,ZBXNEXT-8532] prevented the creation of empty 'ugset' entry for new users created with empty groups A......... [ZBXNEXT-5878,ZBXNEXT-8532] fixed receiving API result of array type when countOutput is requested; fixed code style A.F....... [ZBXNEXT-5878] fixed minor formatting issies in the schema.tmpl file .......... [ZBXNEXT-5878] improved code style .......... [ZBXNEXT-5878] improved code style; removed extra role .......... [ZBXNEXT-5878] refactored tests: fixed early convert calls; re-ordered objects and function placement; added custom users to DRule test; improved code style A......... [ZBXNEXT-5878,ZBXNEXT-8532] prevented displaying of the alerts sent to users not belonging to the accessible user groups of current user .......... [ZBXNEXT-5878] fixed user form test .......... [ZBXNEXT-5878] added test cases to cover zbx_db_delete_groups() A......... [ZBXNEXT-5878,ZBXNEXT-8532] fixed undefined index error trying to delete template group from template A......... [ZBXNEXT-5878,ZBXNEXT-8532] fixed inability to update existing host during the import, if imported host contains a templates to be linked A......... [ZBXNEXT-5878,ZBXNEXT-8532] fixed inability to remove all host groups with read-write permissions from the host by user with type Admin, if host has also other groups, that is inaccessible to user; fixed inability to update properties of Host API object if all host groups with read-write permissions was requested to be deleted with a single API request A......... [ZBXNEXT-5878,ZBXNEXT-8532] prevented access to the host user macros which should be inacessible to user A......... [ZBXNEXT-5878,ZBXNEXT-8532] prevented access to graphs, graph prototypes, or graph items that contain items from multiple hosts when user don't have permissions at least to one of the graph's items ........S. [ZBXNEXT-5878] fixed missing permissions vector clear A......... [ZBXNEXT-5878,ZBXNEXT-8532] fixed inability to access API methods that require authentication; prevented from sending the "ugsetid" parameter in the response of user.login and user.checkAuthentication API methods, when userData are requested ........S. [ZBXNEXT-5878] fixed memory leak .......... [ZBXNEXT-5878] fixed tests after review ........S. [ZBXNEXT-5878] fixed minor coding style ...
Showing diff to0bb30c1953e