Code Duplication    Length = 11-15 lines in 2 locations

htdocs/lib2/logic/user.class.php 2 locations

@@ 919-933 (lines=15) @@
916
        }
917
    }
918
919
    public function canDisable()
920
    {
921
        global $login;
922
        $login->verify();
923
924
        if ($login->userid != $this->nUserId && ($login->admin & ADMIN_USER) != ADMIN_USER) {
925
            return false;
926
        }
927
928
        if ($this->getIsActive() != 0) {
929
            return true;
930
        } else {
931
            return false;
932
        }
933
    }
934
935
    public function disable()
936
    {
@@ 1020-1030 (lines=11) @@
1017
    }
1018
1019
1020
    public function canDisableDueLicense()
1021
    {
1022
        global $login;
1023
        $login->verify();
1024
1025
        if ($login->userid != $this->nUserId && ($login->admin & ADMIN_USER) != ADMIN_USER) {
1026
            return false;
1027
        } else {
1028
            return true;
1029
        }
1030
    }
1031
1032
    /**
1033
     * disables user (if not disabled), removes all licensed content from db and