githelper.git / githelper.pike

version» Context lines:

githelper.git/githelper.pike:606:    groups[fields[0]] = ACCESS_FULL;    continue;    }    if (groups[fields[0]]) continue; // Already a member.    if (has_value(members, user)) {    groups[fields[0]] = ACCESS_BASIC;    continue;    }    groups[fields[0]] = ACCESS_NONE;    } +  +  // Restore master permission in case username == groupname. +  groups[user] = ACCESS_FULL;    }       AccessLevel check_access(string ref_name, string user)    {    /* Return ACCESS_NONE (0) for no access,    * ACCESS_BASIC (1) for basic access, and    * ACCESS_FULL (2) for full access    * (including rebase/delete branch, and move/delete tag)    */    string shortref = ref_name;