Skip to content

Commit

Permalink
Merge pull request #1323 from akto-api-security/hotfix/fix_auth_type
Browse files Browse the repository at this point in the history
Fix auth type for all
  • Loading branch information
aktoboy authored Aug 2, 2024
2 parents 204b965 + c966a7c commit 846d6b7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,10 @@ public void run() {
}

public String updateCustomAuthType(){
User user = getSUser();
customAuthType = CustomAuthTypeDao.instance.findOne(CustomAuthType.NAME,name);
if(customAuthType==null){
addActionError("Custom Auth Type does not exist");
return ERROR.toUpperCase();
} else if(user.getId()!=customAuthType.getCreatorId()){
addActionError("Unautherized Request");
return ERROR.toUpperCase();
} else {
CustomAuthTypeDao.instance.updateOne(Filters.eq(CustomAuthType.NAME, name),
Updates.combine(
Expand Down

0 comments on commit 846d6b7

Please sign in to comment.