-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31d1840
commit 7a0a225
Showing
6 changed files
with
156 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from __future__ import annotations | ||
from typing import Any | ||
from ckan import types | ||
|
||
from ckan.authz import is_authorized | ||
|
||
|
||
def search_tweaks_query_popularity_list( | ||
context: types.Context, data_dict: dict[str, Any] | ||
) -> types.AuthResult: | ||
return is_authorized("sysadmin", context, data_dict) | ||
|
||
|
||
def search_tweaks_query_popularity_export( | ||
context: types.Context, data_dict: dict[str, Any] | ||
) -> types.AuthResult: | ||
return is_authorized("sysadmin", context, data_dict) | ||
|
||
|
||
def search_tweaks_query_popularity_ignore( | ||
context: types.Context, data_dict: dict[str, Any] | ||
) -> types.AuthResult: | ||
return is_authorized("sysadmin", context, data_dict) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters