Does anybody knows why the object platform.data.account.permissionGroup is returning null ?
I'm customising the editor so clients that do not have publish permission need to see a button fixed on the screen and I need the array of permission so I can filter and make the button visible or hided, but when I run try to access the prop. permissionGroup
below is the evidence. Is there any way I can fix or I'm missing some setting ?
Best Answer
-
Hey,
It's Arnoldo from Duda Support.
I logged into your account and site but was not able to reproduce:
If you enter
platform.data.account.permissionGroup
directly into the console, it should return the following object:{name: 'administrator'}
Please note that this property is not going to return a list of permissions, but instead, it will return the name of the group that the staff member is in, in this case,
administrator
.If you need to get a list of permissions, you need to use either of the following two API calls:
In order to use our API, you'll need to be on a Custom plan.
Hope this helps!
1
Answers
-
You can't edit the way the editor works without being on a custom plan. Even then I think it will be limited on what you can do. If your clients don't have published permissions, then they shouldn't see the publish button.
0