Skip to content

Commit

Permalink
[#2939] Fix test test_04_modify_group
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 19, 2012
1 parent a58b54f commit 5c948ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckan/new_authz.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def is_authorized(action, context, data_dict=None):
# these are the permissions that roles have
ROLE_PERMISSIONS = {
'admin': ['admin'],
'editor': ['read', 'update', 'delete_dataset', 'create_dataset', 'update_dataset'],
'editor': ['read', 'delete_dataset', 'create_dataset', 'update_dataset'],
'member': ['read'],
}

Expand Down
4 changes: 2 additions & 2 deletions ckan/tests/logic/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def test_04_modify_group(self):

self._action_post('group_update', group, 'org_admin')

###need to think about this as is horrible may just let editor edit group for this case even
## though spec says otherwise
# need to think about this as is horrible may just let editor edit
# group for this case even though spec says otherwise
self._action_post('group_update', group, 'org_editor', 403)

def test_05_delete_group(self):
Expand Down

0 comments on commit 5c948ff

Please sign in to comment.