1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 08:56:38 +02:00

Rename viewDiscussions => viewForum, viewUserList => searchUsers (#2854)

This naming is clearer as to the intended effect. Changes include:

- A migration to rename all permissions
- Updating the seed migration to use the original naming from the start
- Replacing usage of the old names with new names in code
- Throwing warnings when the old names are used.
This commit is contained in:
Alexander Skvortsov
2021-05-11 15:15:27 -04:00
committed by GitHub
parent 06f63a2087
commit d64750b3eb
17 changed files with 82 additions and 37 deletions

View File

@@ -50,7 +50,7 @@ class RemembererTest extends TestCase
Carbon::setTestNow();
$data = json_decode($response->getBody(), true);
$this->assertFalse($data['data']['attributes']['canViewUserList']);
$this->assertFalse($data['data']['attributes']['canSearchUsers']);
}
/**
@@ -71,7 +71,7 @@ class RemembererTest extends TestCase
Carbon::setTestNow();
$data = json_decode($response->getBody(), true);
$this->assertFalse($data['data']['attributes']['canViewUserList']);
$this->assertFalse($data['data']['attributes']['canSearchUsers']);
}
/**
@@ -92,6 +92,6 @@ class RemembererTest extends TestCase
Carbon::setTestNow();
$data = json_decode($response->getBody(), true);
$this->assertTrue($data['data']['attributes']['canViewUserList']);
$this->assertTrue($data['data']['attributes']['canSearchUsers']);
}
}