Commit da0a77e2 authored by Liang Ding's avatar Liang Ding

🎨 #12794

parent 6e9b4702
...@@ -48,7 +48,7 @@ import javax.servlet.http.HttpServletResponse; ...@@ -48,7 +48,7 @@ import javax.servlet.http.HttpServletResponse;
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://hacpai.com/member/DASHU">DASHU</a> * @author <a href="https://hacpai.com/member/DASHU">DASHU</a>
* @author <a href="https://github.com/nanolikeyou">nanolikeyou</a> * @author <a href="https://github.com/nanolikeyou">nanolikeyou</a>
* @version 1.1.0.18, Mar 27, 2019 * @version 1.1.0.19, Jun 6, 2019
* @since 0.4.0 * @since 0.4.0
*/ */
@Service @Service
...@@ -235,7 +235,7 @@ public class UserMgmtService { ...@@ -235,7 +235,7 @@ public class UserMgmtService {
oldUser.put(User.USER_ROLE, Role.VISITOR_ROLE); oldUser.put(User.USER_ROLE, Role.VISITOR_ROLE);
} }
userRepository.update(userId, oldUser); userRepository.update(userId, oldUser, User.USER_ROLE);
transaction.commit(); transaction.commit();
} catch (final RepositoryException e) { } catch (final RepositoryException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment