Solved

Field Modification Rights

Posted on 2003-11-25
6
229 Views
Last Modified: 2013-12-18
How does one set a field so that anyone with editor rights can initially edit a field when the doc is created, but than restrict it so only a certain person can modify it.
0
Comment
Question by:schmad01
  • 3
  • 2
6 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 9817804
Hi schmad01,

Simplest way: set the field to require EDITOR access.  Then make the "higher level" users editors, and the "lower level" users into Authors.  Of course, if these "authors" need to be able to edit any document (just not this field), set up a role in the ACL called [AllCanEdit] then create a computed author field wth formula "[AllCanEdit]"

Now, on creation, all fields -- including the "editor only" field -- can be edited by anyone.  As soon as the doc is saved the first time, any further changes to this field will be limited to editors -- even if someone has authro access to a particular document, authors are locked out of the particular field.

Where this scheme won't work:  if the "higher level" users need to have Autgor-only access, and you can't assign editor.  You can code around that, but it won't truly be the same.

Best regards,
qwaletee
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9817813
The other way to do this: put the field in a section, with a computed for display section formula, "[RestictedAccess]"

Create that role in the ACL, assign appropriate users.  If you expect thereto be any local replicas, you will need Enforce Consistent ACL.

This is NOT secure, but a convenient way to "direct" who can access the field.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 9818032
You should not hard code the role into the controlled section.. this will effectively block edit rights on the fields in this section right from the start.

So you have to compute it when it is saved

Create a field called EditAccess, computed with formula
@If( @ISNewDoc; ""; "[EditRole]");

EditRole is a role that is defined in the db acl and assigned to the group or group of user ids.

Now the Controlled section should have formula refering this EditAccess field in the @ Formula tab. Just set the type to Computed and enter

EditAccess

Now whenever you create a doc, this section fields are open for edits.. and when it is saved this is blocked to the role that is defined in the EditAccess field

~Hemanth
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:schmad01
ID: 9818033
Actually, the users have Editor access already so I guess I will have to go with a computed access section and use roles?
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 125 total points
ID: 9818441
I suggest taht if the users already have editor acess, then yo shoudl go with my first suggestion.

Add the role.  Assign it to all users.  Add the author field.  Put the role in the author field.  Demote some users from author to editor.

Now, it looks like there is no change, because if you are in the authors field (via the role), it is the same as if you are an editor.

BUT... once you add the field restriction, authors will be able to create data in teh field on new documents, but as son as the document is saved, no more ability to edit that field for Authors, only for Editors.

It is a neat trick.  And it is completely secure.  The controled access method (my second post, as improved by Hemantha's post) is about the same level f difficulty to implement, and is not secure.
0
 

Author Comment

by:schmad01
ID: 9819652
Great. Thanks.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now