mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Merge pull request #2691 from aynsix/PHRAS-2164-masquing-some-app-in-application-section
PHRAS-2164 User profil - application section , masquing of app created for adobe cc plugin
This commit is contained in:
@@ -215,15 +215,23 @@ class AccountController extends Controller
|
||||
{
|
||||
$data = [];
|
||||
|
||||
$nativeApp = [
|
||||
\API_OAuth2_Application_Navigator::CLIENT_NAME,
|
||||
\API_OAuth2_Application_OfficePlugin::CLIENT_NAME,
|
||||
\API_OAuth2_Application_AdobeCCPlugin::CLIENT_NAME,
|
||||
];
|
||||
|
||||
$user = $this->getAuthenticatedUser();
|
||||
foreach (
|
||||
$this->getApiApplicationRepository()->findByUser($user) as $application) {
|
||||
$account = $this->getApiAccountRepository()->findByUserAndApplication($user, $application);
|
||||
|
||||
$data[$application->getId()] = [
|
||||
'application' => $application,
|
||||
'user-account' => $account,
|
||||
];
|
||||
if(!in_array($application->getName(), $nativeApp)){
|
||||
$data[$application->getId()] = [
|
||||
'application' => $application,
|
||||
'user-account' => $account,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
return $this->render('account/authorized_apps.html.twig', [
|
||||
|
Reference in New Issue
Block a user