Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Restrict edit - issue, posted by Heinzmann on Mon Mar 9 17:55:30 2009 
    icon6.gif   Re: Restrict edit - issue, posted by Heinzmann on Tue Mar 10 16:33:52 2009 
    icon2.gif   Re: Restrict edit - issue, posted by Stefan Ritt on Wed Mar 25 10:35:59 2009 
Message ID: 66270     Entry time: Wed Mar 25 10:35:59 2009     In reply to: 66242
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Mac OSX  ELOG Version: V2.7.5-217 
Subject: Re: Restrict edit - issue 

 

Heinzmann wrote:

Hello,

please could you help me.

The Restrict edit funktion is not working. Because my user Dirk is able to edit/delete the text from user Peter:

 via select and edit.

Delete the - keep original text here - and then submit.

The whole text disappeared from the user Peter

I have tried both Restrict edit = 0 and then Restrict edit = 1 

Please note my config:

 

[global]
port = 80
Password file = C:\Program Files\ELOG\test.txt
Admin user = admin3
Self register = 1
Login expiration = 0

[demo]
Theme = default
Comment = General linux tips & tricks
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Required Attributes = Author, Type
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type
Login user = Peter, Dirk, Kervin, Frank, MichaelH
Password file = C:\Program Files\ELOG\user.txt
Self register = 1
Login expiration = 0
Restrict edit = 0

 

Thanks

 

First, you need "Restrict edit = 1" in your config file. Then for each edit operation the system checks the currently logged in user against the "Author" attribute. Therefore, the "Author" attribute must contain the full user name. This can be achieved by adding

Preset Author = $long_name
Locked Attributes = Author

as described in the manual.

ELOG V3.1.5-3fb85fa6