Add method "allowed" for Match object
Add method "allowed" for Match object

This is a shortcut for tests in the scope user or admin,
if an action is either allowed or if no policies are defined at all.
In those cases the user or admin would be allowed to perform
the requested action.

Taken from #1870

Working on #1691

privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea