Skip to content

Commit

Permalink
API deprecate InheritedPermissions::getJoinTable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewandante committed Jun 22, 2023
1 parent 0bfbef2 commit 4edc2fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Security/InheritedPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use SilverStripe\Versioned\Versioned;
use Psr\SimpleCache\CacheInterface;
use SilverStripe\Core\Cache\MemberCacheFlusher;
use SilverStripe\Dev\Deprecation;

/**
* Calculates batch permissions for nested objects for:
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -642,11 +642,13 @@ protected function getPermissionField($type)
* 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);
}

Expand Down

0 comments on commit 4edc2fc

Please sign in to comment.