Details
Description
Currently, the XWikiRightsService.hasAdminRights() method checks admin rights for both current wiki and current space, even though the javadoc states that only the wiki is checked.
This can cause security problems since an user that is only a space admin might be allowed to use certain plugins where wiki admin level was required.
Adding this method and fixing the javadoc for hasAdminRights() will provide developers with a better choice of checking only wiki admin level in their code and avoid the security problems caused by the confusion.