Skip to content

Commit 5be65b0

Browse files
committed
fixed: isActive returns TRUE only if account active.
1 parent 980f789 commit 5be65b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Plans/AdvancepaidPlan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function isAllowed()
9090

9191
public function isActive()
9292
{
93-
return $this->user->status;
93+
return $this->user->status == ACTIVE ? TRUE : FALSE;
9494
}
9595

9696
public function isLimited()

src/Plans/FreePlan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function isAllowed()
8888

8989
public function isActive()
9090
{
91-
return $this->user->status;
91+
return $this->user->status == ACTIVE ? TRUE : FALSE;
9292
}
9393

9494
public function isLimited()

src/Plans/PrepaidPlan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function isAllowed()
117117

118118
public function isActive()
119119
{
120-
return $this->user->status;
120+
return $this->user->status == ACTIVE ? TRUE : FALSE;
121121
}
122122

123123
public function isLimited()

0 commit comments

Comments
 (0)