mirror of
https://github.com/flarum/core.git
synced 2025-08-12 03:14:33 +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:
committed by
GitHub
parent
06f63a2087
commit
d64750b3eb
@@ -82,7 +82,7 @@ class UserTest extends TestCase
|
||||
|
||||
$user = User::find(2);
|
||||
|
||||
$this->assertContains('viewUserList', $user->getPermissions());
|
||||
$this->assertContains('searchUsers', $user->getPermissions());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,7 +100,7 @@ class UserTest extends TestCase
|
||||
|
||||
$user = User::find(2);
|
||||
|
||||
$this->assertNotContains('viewUserList', $user->getPermissions());
|
||||
$this->assertNotContains('searchUsers', $user->getPermissions());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,7 +114,7 @@ class UserTest extends TestCase
|
||||
|
||||
$user = User::find(2);
|
||||
|
||||
$this->assertNotContains('viewUserList', $user->getPermissions());
|
||||
$this->assertNotContains('searchUsers', $user->getPermissions());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user