Skip to content

Commit

Permalink
fix for dx_ctl_users - support for Self Service in 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Przepiorowski committed Jan 23, 2019
1 parent 5d1a736 commit 82b01a3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.3.9.1

### Changed
- dx_ctl_users - fix for Self Service users support in 5.3

## 2.3.9

### Changed
Expand All @@ -8,10 +13,10 @@
### Added
- DB2 support added
- dx_ctl_dsource - action update added to allows change of backup_path and validated sync mode for an Oracle and Sybase
- dx_ctl_user - added possibility to set timeout for one or all users, option force added to remove a JS container ownership and delete user
- dx_ctl_users - added possibility to set timeout for one or all users, option force added to remove a JS container ownership and delete user

### Changed
- dx_ctl_user - is running actions for users in same domain as user used for connection
- dx_ctl_users - is running actions for users in same domain as user used for connection


## 2.3.9-rc1
Expand Down
2 changes: 1 addition & 1 deletion lib/Toolkit_helpers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use File::Spec;

use lib '../lib';

our $version = '2.3.9';
our $version = '2.3.9.1';

sub logger {
my $debug = shift;
Expand Down
20 changes: 13 additions & 7 deletions lib/User_obj.pm
Original file line number Diff line number Diff line change
Expand Up @@ -517,14 +517,20 @@ sub setJS {

if ( uc $flag eq 'Y' ) {
if ( defined($current_state) ) {
logger($self->{_debug}, "User is already Jet Stream User. ",0);
return 0;
logger($self->{_debug}, "User is already Jet Stream User. ",0);
return 0;
} else {
if ( $authorizations->setAuthorisation($reference,'Jet Stream User',$reference) ) {
return 1;
} else {
return 0;
}
my $rolename;
if (version->parse($self->{_dlpxObject}->getApi()) < version->parse("1.10.0")) {
$rolename = 'Jet Stream User';
} else {
$rolename = 'Self-Service User';
}
if ( $authorizations->setAuthorisation($reference, $rolename, $reference) ) {
return 1;
} else {
return 0;
}

}
}
Expand Down

0 comments on commit 82b01a3

Please sign in to comment.