Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 4:28 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: OA 1.12.6 user problem
PostPosted: Fri May 20, 2016 11:17 pm 
Offline
Helper

Joined: Wed Aug 08, 2012 1:49 am
Posts: 70
With new version i can't add user.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Sun May 22, 2016 2:29 pm 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
Yes, many changes recently and it looks like this broke. Quick fix that works for me before Mark can confirm and fix.

Edit the if-else at line 180...

From this:
[code] if (is_null($this->m_oa_user->select_user($details->user_name))) {
#user does not exist - good
$details->user_id = $this->m_oa_user->add_user($details);
$this->m_oa_group->edit_user_groups($details);
} else {[/code]

To this:
[code]
if (!$this->m_oa_user->select_user($details->name)) {
#user does not exist - good
$details->id = $this->m_oa_user->add_user($details);
$this->m_oa_group->edit_user_groups($details);
} else {[/code]


Top
 Profile  
Reply with quote  
PostPosted: Tue May 24, 2016 9:34 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
My apologies - this one slipped through.

I have added the fix for the next release. For now, just patch as per JPA's comments.

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group