Ticket #1133 (closed defect: worksforme)

Opened 3 years ago

Last modified 2 years ago

command line rights manipulation doesn't work

Reported by: johnlawrenceaspden Owned by:
Priority: awaiting triage Milestone:
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

It appears that the command

$ paster rights add russianfan admin warandpeace

has no effect, even though

$ paster rights remove russianfan admin warandpeace

works fine. This may be specific to something I've done, could someone confirm?

If it's the case more generally, then I'm assuming this behaviour is untested? Tests should probably be added.

Change History

comment:1 Changed 3 years ago by thejimmyg

  • Milestone ckan-v1.5 deleted

comment:2 Changed 2 years ago by dread

  • Status changed from new to closed
  • Resolution set to worksforme

Works for me - change occurs successfully.

(pyenv-ckan)[email protected]:~/gitroot/ckan$ paster rights add russianfan admin warandpeace
/home/dread/gitroot/pyenv-ckan/lib/python2.6/site-packages/pylons/templating.py:610: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
  Engine = entry_point.load()
User russianfan -> is admin on -> Package warandpeace
(pyenv-ckan)[email protected]:~/gitroot/ckan$ paster rights
/home/dread/gitroot/pyenv-ckan/lib/python2.6/site-packages/pylons/templating.py:610: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
  Engine = entry_point.load()
22 results
User visitor -> is editor on -> Package annakarenina
User logged_in -> is editor on -> Package annakarenina
User testsysadmin -> is admin on -> System system
User logged_in -> is editor on -> System system
User visitor -> is reader on -> Group david
User annafan -> is admin on -> Package annakarenina
AuthorizationGroup anauthzgroup -> is reader on -> Package warandpeace
User visitor -> is editor on -> Package warandpeace
AuthorizationGroup anauthzgroup -> is editor on -> Group david
User logged_in -> is editor on -> Package warandpeace
User logged_in -> is reader on -> Group david
User visitor -> is reader on -> Group roger
User logged_in -> is reader on -> Group roger
User russianfan -> is admin on -> Package warandpeace
User visitor -> is admin on -> Package warandpeace
AuthorizationGroup anotherauthzgroup -> is editor on -> AuthorizationGroup anauthzgroup
User russianfan -> is admin on -> Group roger
User russianfan -> is admin on -> Group david
AuthorizationGroup anauthzgroup -> is admin on -> AuthorizationGroup anotherauthzgroup
User visitor -> is anon_editor on -> System system
User visitor -> is admin on -> Group roger
AuthorizationGroup anauthzgroup -> is editor on -> System system

Tests would be nice, but it currently works, is only for admins and is therefore not as high priority as other other tests, such as front-end js.

Note: See TracTickets for help on using tickets.