See bug 41562 comment 7. To avid collision with other scripts we should have the functions and variables under the Koha namespace.
Created attachment 191570 [details] [review] Bug 41653: Move addPrefs and addPermissions under the Koha namespace Patch from commit 426a2cf
Created attachment 191571 [details] [review] Bug 41653: Move addPrefs and addPermissions under the Koha namespace Patch from commit dcee0c2