Version 4.2.0
This commit is contained in:
1 parent
0dc2aee5ed
commit
96997ddd8e
2074 files changed
+125454
-55780
No files matched your search
+15
-8
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Group Model
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @since 13 Mar 2013
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
namespace IPS\Member;
|
||||
@@ -51,7 +50,7 @@ class _Group extends \IPS\Patterns\ActiveRecord
|
||||
'gbw_promote_unit_type' => 16, // 16 is deprecated (previously gbw_promote_unit_type). Remove in 4.1.19.
|
||||
'gbw_no_status_update' => 32, // Can NOT post status updates
|
||||
// 64 is deprecated (previously gbw_soft_delete)
|
||||
'gbw_soft_delete_own' => 128, // Allow users of this group to hide their own submitted content
|
||||
// 128 is deprecated (previously gbw_soft_delete_own)
|
||||
// 256 is deprecated (previously gbw_soft_delete_own_topic)
|
||||
// 512 is deprecated (previously gbw_un_soft_delete)
|
||||
// 1024 is deprecated (previously gbw_soft_delete_see)
|
||||
@@ -72,14 +71,15 @@ class _Group extends \IPS\Patterns\ActiveRecord
|
||||
// 33554432 is deprecated (previously gbw_hide_leaders_page)
|
||||
'gbw_pm_unblockable' => 67108864, // Deprecated in favour of global unblockable setting
|
||||
'gbw_pm_override_inbox_full'=> 134217728, // 1 means this group can send other members PMs even when that member's inbox is full
|
||||
'gbw_no_report' => 268435456, // 1 means they CAN'T report content. 0 means they can.
|
||||
// 268435456 is deprecated (previously gbw_no_report)
|
||||
'gbw_cannot_be_ignored' => 536870912, // 1 means they cannot be ignored. 0 means they can
|
||||
'gbw_delete_attachments' => 1073741824, // 1 means they can delete attachments from the "My Attachments" screen
|
||||
),
|
||||
'g_bitoptions2' => array(
|
||||
'gbw_post_highlight' => 1, // 1 means on, 0 means off
|
||||
'gbw_hide_group' => 2, // Hide this group on the front end in search and similar areas: 1 is on, 0 is off
|
||||
'gbw_lock_unlock_own' => 4, // Allow users in this group to lock and unlock their own content
|
||||
// 4 is deprecated (previously gbw_lock_unlock_own)
|
||||
'gbw_promote' => 8 // Allow users in this group to promote to facebook/twitter
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -213,6 +213,7 @@ class _Group extends \IPS\Patterns\ActiveRecord
|
||||
/* Clear application and module store so that permissions are correctly rebuilt */
|
||||
unset( \IPS\Data\Store::i()->applications );
|
||||
unset( \IPS\Data\Store::i()->modules );
|
||||
unset( \IPS\Data\Store::i()->groups );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -342,7 +343,13 @@ class _Group extends \IPS\Patterns\ActiveRecord
|
||||
|
||||
parent::delete();
|
||||
\IPS\Lang::deleteCustom( 'core', 'core_group_' . $this->g_id );
|
||||
|
||||
unset( \IPS\Data\Store::i()->groups );
|
||||
unset( \IPS\Data\Store::i()->moderators );
|
||||
unset( \IPS\Data\Store::i()->administrators );
|
||||
|
||||
/* Update Core Leaders */
|
||||
\IPS\core\StaffDirectory\User::updateEmptySetting();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user