mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Add authorization strategy for WAMP topics
This commit is contained in:
31
lib/Alchemy/Phrasea/Websocket/Consumer/ConsumerInterface.php
Normal file
31
lib/Alchemy/Phrasea/Websocket/Consumer/ConsumerInterface.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2014 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Alchemy\Phrasea\Websocket\Consumer;
|
||||
|
||||
interface ConsumerInterface
|
||||
{
|
||||
/**
|
||||
* Return true if the consumer is authenticated in Phraseanet
|
||||
*
|
||||
* @return Boolean
|
||||
*/
|
||||
public function isAuthenticated();
|
||||
|
||||
/**
|
||||
* Return true if the user has the given rights
|
||||
*
|
||||
* @param string\array $rights A right or an array of rights
|
||||
*
|
||||
* @return Boolean
|
||||
*/
|
||||
public function hasRights($rights);
|
||||
}
|
Reference in New Issue
Block a user