Open-AudIT

What's on your network?
It is currently Tue Jan 16, 2018 7:39 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 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: 59
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: 1223
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 {


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 {


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: 1933
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 Opmantek.
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 6 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:  
cron
Powered by phpBB® Forum Software © phpBB Group