Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 06/20/2006 1:57 PM by  Peter Donker
Automatically add security roles
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Christophe Borry
New Member
New Member
Posts:1


--
06/19/2006 5:55 PM

    Hey,

     

    We would like certain employees to have 2 week to verify documents in DMX. After those 2 week the document should become available for all users. Therefor the 'all users' role should get view rights after two weeks automatically.

    Is it possible to 'simply' add a scheduled task that inserts lines in a 'view role' table with the right values? What table and values would that be?

    Help would be much appreciated,

    Christophe

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    06/20/2006 1:57 PM
    Sure you can. Look for 'ViewRoles' in DMX_Entries and set this to '-1;'. You'd want to check DateSubmitted to find out when the file was uploaded. You could do this easily with a single SQL query. Something like:

    UPDATE DMX_Entries
    SET ViewRoles = '-1;'
    WHERE DATEDIFF(day, DateSubmitted, GETDATE()) > 14

    Something like that ...

    Peter
    You are not authorized to post a reply.