Removed 'subscriber' cap from 'admin' role
This allows admins to test what happens when users do not have a subscription. To give the user subscriber capability, just grant demo role as well.
This commit is contained in:
@@ -677,7 +677,7 @@ class RequireRolesTest(AbstractPillarTest):
|
||||
self.assertFalse(called[0])
|
||||
|
||||
with self.app.test_request_context():
|
||||
self.login_api_as(ObjectId(24 * 'a'), ['admin'])
|
||||
self.login_api_as(ObjectId(24 * 'a'), ['demo'])
|
||||
call_me()
|
||||
self.assertTrue(called[0])
|
||||
|
||||
|
Reference in New Issue
Block a user