Skip to content

Commit

Permalink
Minor Fix for pro user access.
Browse files Browse the repository at this point in the history
  • Loading branch information
lawal-olaotan committed Nov 13, 2023
1 parent f5dc76d commit 3edbf6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const exampleQuery = function () {
setting isGeneListRestricted?
*/

if (isGeneListRestricted && minimumUserRole == 'pro') {
if ( isGeneListRestricted && minimumUserRole === 'pro') {
queryRestriction = `<a class='query-restriction-text' href="https://knetminer.com/pricing-plans" target="_blank" >(Upgrade)</a>`;
}

Expand Down
4 changes: 3 additions & 1 deletion client-base/src/main/webapp/html/javascript/user-access.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class UserAccessManager{

if(this.requires('free')){
this.#defaultGeneLimit = 100;
}else if(this.requires('pro')){
}

if(this.requires('pro')){
this.#isGeneLimitEnforced = false;
this.#defaultKnetViewLimit = 20
}
Expand Down

0 comments on commit 3edbf6a

Please sign in to comment.