Skip to content

Commit

Permalink
エクスポートにシステム管理者も含まれてしまう。
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Aug 19, 2016
1 parent 838d507 commit 83cfed6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Controller/UserManagerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ public function download_import_format() {
* @return void
*/
public function export() {
//タイムアウトはっせいするなら適宜設定
set_time_limit(1800);

$this->helpers[] = 'Users.UserSearchForm';
$this->helpers[] = 'Users.UserSearch';

Expand All @@ -332,7 +335,10 @@ public function export() {
array(
'conditions' => array(
'space_id' => Space::PRIVATE_SPACE_ID,
'User.role_key !=' => UserRole::USER_ROLE_KEY_SYSTEM_ADMINISTRATOR,
'User.role_key NOT' => array(
UserRole::USER_ROLE_KEY_SYSTEM_ADMINISTRATOR,
UserRole::USER_ROLE_KEY_ADMINISTRATOR
),
'User.is_deleted' => false,
),
'joins' => array('Room' => array(
Expand Down

0 comments on commit 83cfed6

Please sign in to comment.