stable

Clone or download

Read-only

Manage news write through user groups

Part of story #10062: Users & groups management overhaul Go to project ยป admin ยป groups - The group "News writer" is displayed only if the current project is using the news service. - You cannot delete this group. - You can add members in this group => in permissions matrix they have the news writer flag. - You can remove members from this group => in permissions matrix they have not anymore the news writer flag. - You can remove all members from this group. - You cannot remove the last member of the Project administrators users group. To ease review this commit only deals with Writer News user group. Admin News user group will be done in a dedicated commit. Removal of news perms from the matrix too. Change-Id: I42f5220c6e9f5cc630f9add27db89d6234efa1dd

Modified Files

Name
M plugins/mediawiki/include/mediawikiPlugin.class.php +24 โˆ’0 Go to diff View file
M site-content/en_US/project/project.tab +3 โˆ’0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +3 โˆ’0 Go to diff View file
M site-content/fr_FR/project/project.tab +3 โˆ’0 Go to diff View file
M site-content/tuleap-core.pot +3 โˆ’0 Go to diff View file
M src/common/autoload.php +4 โˆ’2 Go to diff View file
M src/common/project/Admin/ProjectMembers/ProjectMembersController.php +6 โˆ’0 Go to diff View file
M src/common/project/Admin/ProjectMembers/ProjectMembersDAO.php +1 โˆ’0 Go to diff View file
M src/common/project/Admin/ProjectUGroup/DynamicUGroupMembersUpdater.php +19 โˆ’0 Go to diff View file
M src/common/project/Admin/ProjectUGroup/UGroupListPresenterBuilder.php +4 โˆ’0 Go to diff View file
A src/common/project/Admin/ProjectUGroup/UserBecomesNewsWriter.php +26 โˆ’0 Go to diff View file
A src/common/project/Admin/ProjectUGroup/UserIsNoLongerNewsWriter.php +26 โˆ’0 Go to diff View file
M src/common/project/ProjectUGroup.class.php +5 โˆ’5 Go to diff View file
M src/common/project/UserPermissionsDao.php +28 โˆ’0 Go to diff View file
M src/common/user/UserGroup/NameTranslator.php +3 โˆ’0 Go to diff View file
M src/db/mysql/database_initvalues.sql +1 โˆ’0 Go to diff View file
A src/db/mysql/updates/2017/201711301015_add_news_writer_in_permission_table.php +39 โˆ’0 Go to diff View file
M src/templates/project/members/project-members.mustache +1 โˆ’1 Go to diff View file
M src/www/project/admin/ugroup_utils.php +9 โˆ’0 Go to diff View file
M tests/lib/TestDataBuilder.php +1 โˆ’0 Go to diff View file
M tests/rest/tests/ProjectTest.php +10 โˆ’2 Go to diff View file
M tests/simpletest/common/project/UGroupTest.php +2 โˆ’2 Go to diff View file