code: public static boolean hasPermissionOn(String permission, String simpleScope) {
          return securitySupport.isPermitted(permission, new SimpleScope(simpleScope));
      }
docs: Checks the current user permission.
  
  @param permission  the permission to check
  @param simpleScope the simple scope to check this permission on.
  @return true if user has the given permission for the given simple scope.