getAppOrError returns an app if the user is admin.