Can you set default Permissions on a live-template?
Is it possible to set default restrictions on a live template?
i.e. When the template is used and a page is set up can it by default be visible only to 'Bob'?
i.e. When the template is used and a page is set up can it by default be visible only to 'Bob'?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?No, not currently. It's an interesting idea, but I'm not sure if Scaffolding specifically is the best way to achieve this. I think a separate plugin would be more flexible. Something along the lines of either:
1. A macro that you specify the desired restrictions on. Eg:
{page-restriction:type=view|group=my-custom-group}
{page-restriction:type=edit|user=a.jordan,d.peterson}
Essentially, it would check the page permissions every time the page is viewed (or maybe just when edited would be a better idea) and enforces those restrictions.
2. An event listener that listens for page label modifications and will add restrictions when a particular label is added to a page. Less flexible though, and prone to accidental page lockouts...
I think option 1 is the better one, and the good thing is, it wouldn't require a modification to Scaffolding. Someone could write this as an independent plugin and you're good to go.
1 person says
this answers the question
-
Inappropriate?How about adding a default restrictions value to the {add-page} macro? That might solve it?
Issue at hand is that any user can view the expense reports & attachments created by other users, unless they set the page restrictions manually.
Is there maybe a better solution to this? -
Inappropriate?It might be possible to add it to {add-page} for the case when 'live=true' (the alternative uses Confluence's built-in 'create from template' pathway, so it wouldn't work there).
My suggestion would be to create a feature request and I'll schedule it for investigation in the next release.
Loading Profile...




EMPLOYEE