<%@language = "javascript" %>
<% /*
    $Revision$
    $Id$

    File:           prs_perslid_clear.asp
    Description:    Wissen datum inactief
    Parameters:
    Context:        Vanuit prs_show_perslid.asp
    Note:
*/
var JSON_Result = true;
%>
<!--#include file="../Shared/common.inc"-->
<!--#include file="../PRS/prs.inc" -->
<%
protectRequest.validateToken();

var prs_key = getFParamInt("prs_key", -1);
var reactiveer = getFParamInt("reactivate", 0) == 1;
var prsauthparams = prs.checkAutorisation(user_key);
user.auth_required_or_abort(prsauthparams.writeman);

var sql = "UPDATE prs_perslid"
        + "   SET prs_perslid_inactief = NULL"
        + " WHERE prs_perslid_key = " + prs_key;
Oracle.Execute(sql);

shared.trackaction("PRSLOG", prs_key, L("lcl_prs_person_reactivated"));

var result = { success: true, toaster: L("lcl_prs_person_reactivated") };

Response.Write(JSON.stringify(result));
Response.End;
%>
<% ASPPAGE_END(); %>
