| | |
| | | import com.gitblit.Constants.AuthorizationControl;
|
| | | import com.gitblit.Constants.PermissionType;
|
| | | import com.gitblit.Constants.RegistrantType;
|
| | | import com.gitblit.GitBlitException.NotAllowedException;
|
| | | import com.gitblit.GitBlitException.ForbiddenException;
|
| | | import com.gitblit.GitBlitException.UnauthorizedException;
|
| | | import com.gitblit.Keys;
|
| | | import com.gitblit.models.FederationModel;
|
| | |
| | | UserModel user = null;
|
| | | try {
|
| | | user = RpcUtils.getUser("admin", url, null, null);
|
| | | } catch (NotAllowedException e) {
|
| | | } catch (ForbiddenException e) {
|
| | | }
|
| | | assertNull("Server allows anyone to get user!", user);
|
| | |
|