Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
f49ef851dff8b60968789514c1f3be280d98838e
discourse/db/fixtures/002_groups.rb

9 lines
224 B
Ruby
Raw Normal View History

DEV: enable frozen string literal on all files This reduces chances of errors where consumers of strings mutate inputs and reduces memory usage of the app. Test suite passes now, but there may be some stuff left, so we will run a few sites on a branch prior to merging
2019-05-03 08:17:27 +10:00
# frozen_string_literal: true
automatic groups should be bootstrapped
2013-11-18 12:53:14 +11:00
Group.ensure_automatic_groups!
FIX: there is no trust_level_5
2014-07-10 12:17:13 +10:00
if g = Group.find_by(name: 'trust_level_5', id: 15)
g.destroy!
end
FEATURE: add support for group visibility level There are 4 visibility levels - public (default) - members only - staff - owners Note, admins and group owners ALWAYS have visibility to groups Migration treated old "non public" as "members only"
2017-07-03 15:26:46 -04:00
FEATURE: Add new group visibility option for "logged on users" (#7814) Groups can now be marked as visible to "logged on users". All automatic groups (except `everyone`) are now visible to "logged on users", previously they were marked as public but suppressed in the group page for non-staff.
2019-07-08 15:09:50 -04:00
Group.where(name: 'everyone').update_all(visibility_level: Group.visibility_levels[:staff])
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 200ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API