Code Duplication    Length = 11-15 lines in 2 locations

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

@@ 870-884 (lines=15) @@
867
        }
868
    }
869
870
    public function canDisable()
871
    {
872
        global $login;
873
        $login->verify();
874
875
        if ($login->userid != $this->nUserId && ($login->admin & ADMIN_USER) != ADMIN_USER) {
876
            return false;
877
        }
878
879
        if ($this->getIsActive() != 0) {
880
            return true;
881
        } else {
882
            return false;
883
        }
884
    }
885
886
    public function disable()
887
    {
@@ 971-981 (lines=11) @@
968
    }
969
970
971
    public function canDisableDueLicense()
972
    {
973
        global $login;
974
        $login->verify();
975
976
        if ($login->userid != $this->nUserId && ($login->admin & ADMIN_USER) != ADMIN_USER) {
977
            return false;
978
        } else {
979
            return true;
980
        }
981
    }
982
983
    /**
984
     * disables user (if not disabled), removes all licensed content from db and