mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
added default type to user manager
This commit is contained in:
@@ -129,6 +129,13 @@ public class XmlGroupManager extends AbstractGroupManager
|
||||
@Override
|
||||
public void create(Group group) throws GroupException, IOException
|
||||
{
|
||||
String type = group.getType();
|
||||
|
||||
if (Util.isEmpty(type))
|
||||
{
|
||||
group.setType(groupDAO.getType());
|
||||
}
|
||||
|
||||
if (logger.isInfoEnabled())
|
||||
{
|
||||
logger.info("create group {} of type {}", group.getName(),
|
||||
@@ -142,13 +149,6 @@ public class XmlGroupManager extends AbstractGroupManager
|
||||
throw new GroupAllreadyExistExeption();
|
||||
}
|
||||
|
||||
String type = group.getType();
|
||||
|
||||
if (Util.isEmpty(type))
|
||||
{
|
||||
group.setType(groupDAO.getType());
|
||||
}
|
||||
|
||||
group.setCreationDate(System.currentTimeMillis());
|
||||
groupDAO.add(group);
|
||||
fireEvent(group, HandlerEvent.CREATE);
|
||||
|
||||
Reference in New Issue
Block a user