Zum Hauptinhalt gehen

Suche

Suche

Label Locked By Former Employee

Kommentare

4 Kommentare

  • Avatar
    Fernando Ramos Miracle
    Moderator

    Hello Bob,

     

    You only need to give another user permissions to check in that document from Security Center. Once done so that user will be able to modify that document's sate too.

     

    Regards.

    0
  • Avatar
    GertR

    Hello,

    my actual user has all Librarian rights from Security Center but I'm not able to "Undo Check Out" for a file which is locked by an other user.

    Librarian says: This file is locked by another user and cannot be modified.

    How can I unlock this file without loosing any older information?

    What are the exact settings to make an super user (user with all Librarian rights)? 

     

    I'm using Enterprise Automation 10.1 SR4

     

    By the way: When adding a comment to this locked file the tool tip indicates than the user which one added the comment as lock user, not the real user which one did the check out, which is wrong!

    0
  • Avatar
    Jasper Wen
    Moderator

    I would double check that the particular user you are doing the "undo check out" has both administer permissions in BarTender Security Center and local admin permissions to the system. You may also try to right click on Librarian and run as admin.

    1
  • Avatar
    GertR

    Thanks a lot for the hints!!! The "run as..." solves the problem in case I know the user credentials which one was locking the file...

    I do not know all the passwords from our domain users so I made a small program in my asp mvc admin page:

    Snippet

       public ActionResult CheckLockedLabels()
    {
        return View(db.LockedLibLabel);
    }
     
    public ActionResult UndoCheckOut(string labelPath)
    {
        Library library = new Library();
        UndoCheckOutOptions undoCheckOutOptions = new UndoCheckOutOptions();
        LibrarianFile loadedFile = library.GetFile(labelPath);
     
        undoCheckOutOptions.User = loadedFile.LockedByUser;
        loadedFile.UndoCheckOut(undoCheckOutOptions);
     
        CheckOldLocks();
     
        return RedirectToAction("CheckLockedLabels", db.LockedLibLabel);
    }
     
    private static void CheckOldLocks()
    {
        ET01LabelEntities db = new ET01LabelEntities();
        Library library = new Library();
     
        foreach (var item in db.LockedLibLabel)
        {
            LibrarianFile myItem = library.GetFile(item.LabelPath);
            if (myItem.LockedByUser == null)
            {
                db.LockedLibLabel.Remove(item);
            }
        }
        db.SaveChanges();
    }

     

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.