Project

General

Profile

Actions

Bug #1856

open

Missing builtin groups on fresh install

Added by liaham over 1 year ago. Updated 7 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Affected Version:
Compatible Redmine Version:

Description

Problem

An admin user visiting Group page in admin area after a fresh install won't see both GroupAnonymous and GroupNonMember.

Reason

With Redmine version 5 and higher there is a change in code loading leading also to some changes in Group class and its subclasses.

These changes causes buildin groups not to load properly.

  • Group
    • GroupBuiltin
      • GroupAnonymous
      • GroupNonMember

Group class is responsible to load the builtin groups. Builtin groups, however, won't get loaded until Project.allowed_to_condition is called.

Solution

Load builtin group instances at the bottom of Redmine::Preparation.

Actions

Also available in: Atom PDF