Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Jan 2016, 11:47
keef0r keef0r is offline
 
Join Date: Jan 2016
Deleting Users Programmatically

We have a SSO script that creates and logs users in, but I am have having trouble with the delete aspect of it. I found in the docs there is a delete method available, but when I try to use it, I get the following error thrown:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I've noticed that this error is thrown from checkHasAdminPermission, but I haven't been able to find how to authorize the API call as an admin.

Any help would be appreciated.
Reply With Quote
  #2  
Old 26 Jan 2016, 15:46
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Real name: Mel
checkHasAdminPermission() is checking for a valid control panel session. You will probably need to write a new class without the admin check and use that instead.
__________________
VB5 mods - RepliClock VB4 mods - Member Online Status
Reply With Quote
  #3  
Old 28 Jan 2016, 05:48
keef0r keef0r is offline
 
Join Date: Jan 2016
Thanks Replicant. We ended up going with a different route. We added this code right before we run the delete call:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It's less than ideal having to put the admin creds in the file, but it was quick and easy, and served our purposes of moving onto other more important things.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:48.

Layout Options | Width: Wide Color: