src/org/sonews/daemon/command/PostCommand.java
changeset 113 a059aecd1794
parent 101 d54786065fa3
child 115 e5bfc969d41f
     1.1 --- a/src/org/sonews/daemon/command/PostCommand.java	Sun Oct 30 22:13:32 2011 +0100
     1.2 +++ b/src/org/sonews/daemon/command/PostCommand.java	Sun Oct 30 22:15:03 2011 +0100
     1.3 @@ -210,8 +210,8 @@
     1.4  
     1.5  	private void postArticle(NNTPConnection conn, Article article)
     1.6  			throws IOException {
     1.7 -		if (conn.isUserAuthenticated()) {
     1.8 -			article.setAuthenticatedUser(conn.getUsername());
     1.9 +		if (conn.getUser() != null && conn.getUser().isAuthenticated()) {
    1.10 +			article.setAuthenticatedUser(conn.getUser().getUserName());
    1.11  		}
    1.12  		
    1.13  		if (article.getHeader(Headers.CONTROL)[0].length() > 0) {