[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

473.0. "Restricting DELETE document privelege ..." by TAV02::CHAIM (Semper ubi Sub ubi .....) Mon Apr 13 1992 13:11

A customer would like to restrict certain users of the ability to delete any of
their documents. 

Is this possible?

Alternatively, is there a way such that the oa$curdoc_delete flag is set to "N"
by default?

Thanks,

Cb.
T.RTitleUserPersonal
Name
DateLines
473.1IOSG::MAURICEIOSG ain't a place to raise a kidMon Apr 13 1992 14:0411
    Usually the problem is that users don't delete their documents ;^)
    
    My thought would be to customise the delete and x_delete options so
    that they test one of the profile user flags and if set to display a
    "You cannot be serious" message and exit. It would involve customising
    (at least) the EM form, WPDELETE script, EM$INDEX$OPTIONS, and the list
    options.
    
    Cheers
    
    Stuart
473.2Alternate approach might be less workBUFFER::VICKERSIf it helps a customer, DO ITMon Apr 13 1992 20:5014
    To add what Lord Stuart has said you could take your alternative path
    by having the delete attribute set to N for the chosen users.

    I suspect that this path might be less effort in that all you need to
    do is to add the code to DOCCREATE.SCP and the EMHEAD (and relatives).

    If the user is marked by a UFLAG or other means then change the delete
    flag to N:

    	.IF OA$PROFIL_UFLAGn EQS "C" THEN -
    	 CABINET CHANGE_ATTRIBUTE ,"DELETE",OA$CURDOC_DELETE,"N"

    Have fun,
    don
473.3No, do both!FORTY2::ASHGrahame Ash @REOTue Apr 14 1992 10:447
I'm not sure you'll get away with just Don's 'less effort' suggestion, as that 
will only cope with documents and messages the user creates. To handle 
received mail (the largest occupant of most people's FileCabs?) you'll have to 
put a check in the Delete code as Stuart said - I can't think of a way of 
doctoring received mail automatically.

grahame