| | |
| | | import java.util.Map;
|
| | |
|
| | | import com.gitblit.GitBlitException.ForbiddenException;
|
| | | import com.gitblit.GitBlitException.UnauthorizedException;
|
| | | import com.gitblit.IStoredSettings;
|
| | | import com.gitblit.Keys;
|
| | | import com.gitblit.models.FederationModel;
|
| | |
| | | refreshUsers();
|
| | | refreshFederationRegistrations();
|
| | | isAdmin = true;
|
| | | } catch (UnauthorizedException e) {
|
| | | } catch (ForbiddenException e) {
|
| | | } catch (IOException e) {
|
| | | System.err.println(e.getMessage());
|
| | |
| | | }
|
| | |
|
| | | public boolean isOwner(RepositoryModel model) {
|
| | | return account.equalsIgnoreCase(model.owner);
|
| | | return account != null && account.equalsIgnoreCase(model.owner);
|
| | | }
|
| | |
|
| | | public IStoredSettings getSettings() {
|