-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure templates and modify auth functions
- Loading branch information
1 parent
9e87f22
commit 27f6e40
Showing
3 changed files
with
13 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
import ckan.plugins.toolkit as toolkit | ||
|
||
|
||
def bulk_resource_upload(context, data_dict): | ||
userobj = context.get('auth_user_obj') | ||
if not userobj: | ||
raise toolkit.NotAuthorized | ||
return {'success': False} | ||
|
||
|
||
def package_busoperator(context, data_dict): | ||
userobj = context.get('auth_user_obj') | ||
if not userobj: | ||
raise toolkit.NotAuthorized | ||
return {'success': False} |
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