About Lock level

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:35

You can lock/unlock content, shapes and page layers.

This functionality is available on the Pages main tab in Fred4, and - for locking page layers on creation - on the Editions or the Pages main tab.

This is achieved by assigning a

A numeric lock level, in the range 0 to 254, assigned to a group or to an individual user, is used to determine who can lock and unlock the content, shapes and page layers.

The lock level is computed as a maximum among personal lock level and lock levels of all groups where the user belongs. Examples: the user has a personal lock level 25, but being a member of the group X, which in turn has lock level 30, the user's lock level is 30.

If your level is 0, you will not be able to lock objects and elements and layers.

If your level is the same or higher of the lock level used to lock objects or layers, you will be able to unlock them.

How to determine the lock level?

Of the locked selected object on a page: use function Page.GetSelectedLockLevel.

Of the locked layer: use function Page.GetLayerLockLevel.

Of the current user: Dim UserLL = EditorialLogin.GetLogin.GetContext().UserLockLevel

Where to set the user or group lock level?

1.Run EdAdmin4 and then, under Security, click Users and groups.

2.Select a group or a user, and then on the Objects menu, click Edit.

3.On the General tab, in Lock Level, enter a number between 0 and 255.

4.Click OK.

About computing lock level

The lock level is computed as a maximum among personal lock level and lock levels of all groups where the user belongs.

Example 1: the user has a personal lock level 25, but being a member of the group X, which in turn has lock level 30, the user's lock level is 30.

Example 2: the user has a personal lock level 25, and is a member of the group X, which in turn has lock level 24: the user's lock level is 25.

Be careful when assigning lock level to groups, because it will "promote" also the users with lock level 0.

There's no easy way to see the computed lock level in a single step: you need to open the user and all groups the user is member of and calculate the lock level as a maximum of all read lock levels.