https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37392

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #173656|0                           |1
        is obsolete|                            |

--- Comment #48 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 173701
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=173701&action=edit
Bug 37392: Adjust routines

The current code only handled a single layer of groups - top level setting the
features, and libraries directly
underneath.

The code, however, was not correctly checking the features, and was limiting to
single like when no restrictions found.

This patch gets the root ancestor for a group, checks the desired feature
against than group, then fetches all children
of the current group and makes them allowed - i.e. when a library is in a
group, all siblings and descendants in that group
or subgroups can be accessed

I adjust some typos in the tests too, this needs more cleanup in the future,
but am submitting for any discussion

Signed-off-by: Michaela Sieber <[email protected]>
Signed-off-by: Brendan Lawlor <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to