mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API deprecate InheritedPermissions::getJoinTable
This commit is contained in:
parent
34019426dd
commit
4b22ab4dfe
@ -10,6 +10,7 @@ use SilverStripe\ORM\Hierarchy\Hierarchy;
|
||||
use SilverStripe\Versioned\Versioned;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
use SilverStripe\Core\Cache\MemberCacheFlusher;
|
||||
use SilverStripe\Dev\Deprecation;
|
||||
|
||||
/**
|
||||
* Calculates batch permissions for nested objects for:
|
||||
@ -48,7 +49,6 @@ class InheritedPermissions implements PermissionChecker, MemberCacheFlusher
|
||||
public const LOGGED_IN_USERS = 'LoggedInUsers';
|
||||
|
||||
/**
|
||||
* @TODO - rename this to ONLY_THESE_GROUPS
|
||||
* Restrict to specific groups
|
||||
*/
|
||||
public const ONLY_THESE_USERS = 'OnlyTheseUsers';
|
||||
@ -642,11 +642,13 @@ class InheritedPermissions implements PermissionChecker, MemberCacheFlusher
|
||||
* Get join table for type
|
||||
* Defaults to those provided by {@see InheritedPermissionsExtension)
|
||||
*
|
||||
* @deprecated 5.1.0 Use getGroupJoinTable() instead
|
||||
* @param string $type
|
||||
* @return string
|
||||
*/
|
||||
protected function getJoinTable($type)
|
||||
{
|
||||
Deprecation::notice('5.1.0', 'Use getGroupJoinTable() instead');
|
||||
return $this->getGroupJoinTable($type);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user