import com.gitblit.Constants.AuthorizationControl;\r
import com.gitblit.Constants.PermissionType;\r
import com.gitblit.Constants.RegistrantType;\r
-import com.gitblit.GitBlitException.ForbiddenException;\r
-import com.gitblit.GitBlitException.NotAllowedException;\r
-import com.gitblit.GitBlitException.UnauthorizedException;\r
-import com.gitblit.GitBlitException.UnknownRequestException;\r
import com.gitblit.Keys;\r
import com.gitblit.models.FederationModel;\r
import com.gitblit.models.FeedEntryModel;\r
refreshRepositories();\r
refreshSubscribedFeeds(0);\r
\r
- try {\r
- // credentials may not have administrator access\r
- // or server may have disabled rpc management\r
- refreshUsers();\r
- if (protocolVersion > 1) {\r
- refreshTeams();\r
- }\r
- allowManagement = true;\r
- } catch (UnauthorizedException e) {\r
- } catch (ForbiddenException e) {\r
- } catch (NotAllowedException e) {\r
- } catch (UnknownRequestException e) {\r
- } catch (IOException e) {\r
- e.printStackTrace();\r
- }\r
-\r
- try {\r
- // credentials may not have administrator access\r
- // or server may have disabled rpc administration\r
- refreshStatus();\r
- allowAdministration = true;\r
- } catch (UnauthorizedException e) {\r
- } catch (ForbiddenException e) {\r
- } catch (NotAllowedException e) {\r
- } catch (UnknownRequestException e) {\r
- } catch (IOException e) {\r
- e.printStackTrace();\r
+ // credentials may not have administrator access\r
+ // or server may have disabled rpc management\r
+ refreshUsers();\r
+ if (protocolVersion > 1) {\r
+ refreshTeams();\r
}\r
+ allowManagement = true;\r
+\r
+ // credentials may not have administrator access\r
+ // or server may have disabled rpc administration\r
+ refreshStatus();\r
+ allowAdministration = true;\r
+\r
}\r
\r
public int getProtocolVersion() {\r