Code Duplication    Length = 11-15 lines in 2 locations

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

@@ 919-933 (lines=15) @@
916
        return false;
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
        }
931
932
        return false;
933
    }
934
935
    public function disable()
936
    {
@@ 1019-1029 (lines=11) @@
1016
        return !$error;
1017
    }
1018
1019
    public function canDisableDueLicense()
1020
    {
1021
        global $login;
1022
        $login->verify();
1023
1024
        if ($login->userid != $this->nUserId && ($login->admin & ADMIN_USER) != ADMIN_USER) {
1025
            return false;
1026
        }
1027
1028
        return true;
1029
    }
1030
1031
    /**
1032
     * disables user (if not disabled), removes all licensed content from db and