I want to create different input templates, so that user A cann edit the whole publication,but user B only a few fields within the template edit_all.
Is this possible and how do I get this to work?
Zikula 1.2.4 - pagemaster 0.42
Edited by frw on Oct 03, 2010 - 09:31 PM.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Pagemaster/Clip - different input permissions?
-
- Rank: Registered User
- Registered: Jan 21, 2010
- Last visit: Mar 10, 2010
- Posts: 33
-
- Rank: Softmore
- Registered: Jan 24, 2006
- Last visit: Apr 19, 2010
- Posts: 150
I don't know any PageMaster specific function, but for a small group of defined user, I would simply enclose the restricted fields using a condition:
Code
<!--[pnusergetvar name='uname' uid=$uid assign='uname']-->
<!--[if $uname eq 'frw' OR $uname eq 'frw1']-->
my fields
<![/if]-->
If there are a lot of people I would probably use Zikula groups.
Hope it helps,
Philippe -
- Rank: Registered User
- Registered: Jan 21, 2010
- Last visit: Mar 10, 2010
- Posts: 33
Thanks, but the group of user isn't very small, so an special input template only with a part of fields would be better. -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: May 18, 2010
- Posts: 985
If the users are part of a group, give them 'delete' acces
Code
<!--[pnsecauthaction_block component='pagemaster:input:' instance="$pubtype.tid::" level=ACCESS_DELETE]-->
Your Fields
<!--[/pnsecauthaction_block]-->
or maybe another option
where the group.gid is the number of the users who have access....Code
<!--[pnmodapifunc modname="Groups" type="user" func="getusergroups" uid=$uid assign="usergroups"]-->
<!--[foreach item="group" from=$usergroups]-->
<!--[if $group.gid eq 3]--> Your Field<!--[/if]-->
<!--[/foreach]-->
- Igor -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Well
the input has different templates per workflow states but no alternatives like the lists or display. So, you need permissions checks on the same template. pnsecauthaction_block seems to be the best choice IMO.
You also probably need to extend the permission component.
PageMaster uses this permission check:
Code
pagemaster:input: | tid:pid:state
Try to disable the access to the group B to this component:
Code
Group B | pagemaster:input:sectionA | * | None
then use in your edit_all template:
Code
<!--[pnsecauthaction_block component='pagemaster:input:sectionA' instance="$pubtype.tid::" level=ACCESS_EDIT]-->
Group A Fields
<!--[/pnsecauthaction_block]-->
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Registered User
- Registered: Jan 21, 2010
- Last visit: Mar 10, 2010
- Posts: 33
- Moderated by:
- Support
