Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Access rights nuances & troubles

Forum

Search UsersRules
Access rights nuances & troubles
#1
Active user
Points:: 0
Joined:: Sep 2, 2013

Hello;

I have a couple of questions about rights (I'm using 1C 8.2.14)

1. What's the difference between Insert and InteractiveInsert? Why the "Add" button isn't displayed when I check only "Insert" right in a role?

2. How can I give user a right to Insert a record to a Catalog, but prevent him from changing it (and everything else) once Added to Database?

3. What's the difference between Update and Edit rights?

Profile
#2
Guest
Points::
Joined::

Hello, Joanna.
1. Insert means creating new object in general (think of it as object is created using script). While interactive insert means that the object can be created from the interface by a user.
2. Allow the interactive insert and disallow update.
3. Update is changing object from script and Edit is changing object from the form.

Profile
#3
Active user
Points:: 0
Joined:: Sep 2, 2013

Hello!

Thank you for response!

However I have a problem: when I want to uncheck "Update", Interactive Insert is also unchecked automatically, so I'm not sure how I should do it. Did I miss anything?

Profile
#4
Guest
Points::
Joined::

That is correct: if an object can not be created in general, it will not be allowed to be created from the interface, that is why Edit right is disabled together with Update right. But you still can allow only Update right and disallow Edit (i.e. interactive update).

Profile
#5
Active user
Points:: 0
Joined:: Sep 2, 2013

Hello again! :)

My main goal is to allow the user to add an entry through the interface (Interactive insert) but just after adding it, disallow any changes (edit/update). I understand that it cannot be done using standard role access settings?

By now I'm using a trick: The catalog has a boolean flag that is set to true just after adding it to the database, and the "Update" role setting has access restriction that disallows changes when this flag is set to true. However I think it's not an elegant way to solve this, rather a "dirty trick".

Is there any other, more elegant way to accomplish this task? I'm using 1C 8.2.14.528

Profile
#6
Guest
Points::
Joined::

Why did not you use what I suggested you in previous message?

Profile
#7
Active user
Points:: 0
Joined:: Sep 2, 2013

But I've already told you that when I want to uncheck "Edit" or "Update", then Interactive Insert is also unchecked automatically, which takes away the "Add" button and makes the user unable to add anything from the interface.

Profile
#8
Guest
Points::
Joined::

I got you. You can allow edit and update for entire the object and prohibit changing all attributes (including standard ones) and tabular sections. Please see attached configuration as an example.

Profile
#9
Guest
Points::
Joined::

By the way, to check if the item that is written is a new one, please use metods described in How to find out that the new document form is opened topic.

Profile
#10
Active user
Points:: 0
Joined:: Sep 2, 2013

Thank you very much, I'm going to experiment with it right away :)

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.