Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
b5b946a9
Commit
b5b946a9
authored
Dec 05, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5: customer must be able to create token for slapos client
parent
378a2dd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/access_token_module.xml
...lapos_erp5/LocalRolesTemplateItem/access_token_module.xml
+4
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Access%20Token%20Module.xml
...5/PortalTypeRolesTemplateItem/Access%20Token%20Module.xml
+6
-0
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
...l_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
+2
-1
No files found.
master/bt5/slapos_erp5/LocalRolesTemplateItem/access_token_module.xml
View file @
b5b946a9
<local_roles_item>
<local_roles>
<role
id=
'F-CUSTOMER'
>
<item>
Author
</item>
</role>
<role
id=
'F-PRODUCTION*'
>
<item>
Author
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'function'
>
<principal
id=
'F-CUSTOMER'
>
Author
</principal>
<principal
id=
'F-PRODUCTION*'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Access%20Token%20Module.xml
View file @
b5b946a9
<type_roles>
<role
id=
'Author'
>
<property
id=
'title'
>
Customer
</property>
<multi_property
id=
'categories'
>
local_role_group/function
</multi_property>
<multi_property
id=
'category'
>
function/customer
</multi_property>
<multi_property
id=
'base_category'
>
function
</multi_property>
</role>
<role
id=
'Author'
>
<property
id=
'title'
>
Production
</property>
<multi_property
id=
'categories'
>
local_role_group/function
</multi_property>
...
...
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
View file @
b5b946a9
...
...
@@ -2034,8 +2034,9 @@ class TestAccessTokenModule(TestSlapOSGroupRoleSecurityMixin):
def
test_AccessTokenModule
(
self
):
module
=
self
.
portal
.
access_token_module
self
.
assertSecurityGroup
(
module
,
[
'F-PRODUCTION*'
,
module
.
Base_getOwnerId
()],
False
)
[
'F-PRODUCTION*'
,
'F-CUSTOMER'
,
module
.
Base_getOwnerId
()],
False
)
self
.
assertRoles
(
module
,
'F-PRODUCTION*'
,
[
'Author'
])
self
.
assertRoles
(
module
,
'F-CUSTOMER'
,
[
'Author'
])
self
.
assertRoles
(
module
,
module
.
Base_getOwnerId
(),
[
'Owner'
])
...
...
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