exclude expired content from static list
In order to exclude expire content from static list I have taken below approach.
- 1) use http://localhost/ecm/idcplg?IdcService=GET_EXPIRED&IsJson=1 and get ExpiredList
- 2) Push this list of content in javascript array
- 3) Check if static list Index item is in this array and exclude it out of iteration
Above approach is working fine for administrative user whereas for general user it returns following data
{
"LocalData": {
"IdcService": "GET_EXPIRED",
"IsJson": "1",
"StatusCode": "-18",
"StatusMessage": "Unable to retrieve list of expired content. User 'sittest1@company.com' does not have sufficient privileges.",
"StatusMessageKey": "!csUnableToRetrieveExpiredList!csUserInsufficientAccess,sittest1@company.com",
"dUser": "sittest1@company.com