Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
cmt
Commits
0aab86b2217d
Commit
799e230c
authored
Aug 10, 2011
by
Nicolas Chauvat
Browse files
[schema] fix BillingAddress permissions: can not use owners in read permission
parent
2618a50ddf35
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema.py
View file @
0aab86b2
...
...
@@ -19,6 +19,8 @@
from
yams.buildobjs
import
RelationDefinition
,
EntityType
,
String
from
cubicweb.schema
import
ERQLExpression
from
cubes.shoppingcart.schema
import
ShoppingItem
from
cubes.conference.schema
import
user_owns_subject
,
user_owns_object
...
...
@@ -36,7 +38,7 @@ class has_shoppingitemtype(RelationDefinition):
class
BillingAddress
(
EntityType
):
__permissions__
=
{
'read'
:
(
'managers'
,
'owners'
,),
'read'
:
(
'managers'
,
ERQLExpression
(
'X owned_by U'
)
,),
'add'
:
(
'managers'
,
'users'
,),
'update'
:
(
'managers'
,
'owners'
,),
'delete'
:
(
'managers'
,
'owners'
,),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment