<?php
/***************************************************************************
- * Copyright (C) 2003-2011 Polytechnique.org *
+ * Copyright (C) 2003-2013 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function handlers()
{
return array(
- 'openid' => $this->make_hook('openid', AUTH_PUBLIC),
- 'openid/melix' => $this->make_hook('melix', AUTH_PUBLIC),
- 'openid/xrds' => $this->make_hook('xrds', AUTH_PUBLIC),
- 'openid/trust' => $this->make_hook('trust', AUTH_MDP),
- 'openid/trusted' => $this->make_hook('trusted', AUTH_MDP),
- 'admin/openid/trusted' => $this->make_hook('admin_trusted', AUTH_MDP, 'admin'),
+ 'openid' => $this->make_hook('openid', AUTH_PUBLIC),
+ 'openid/melix' => $this->make_hook('melix', AUTH_PUBLIC),
+ 'openid/xrds' => $this->make_hook('xrds', AUTH_PUBLIC),
+ 'openid/trust' => $this->make_hook('trust', AUTH_PASSWD, 'user'),
+ 'openid/trusted' => $this->make_hook('trusted', AUTH_PASSWD, 'user'),
+ 'admin/openid/trusted' => $this->make_hook('admin_trusted', AUTH_PASSWD, 'admin'),
);
}
$page->assign('title', 'Mes sites tiers de confiance pour OpenId');
$table_editor = new PLTableEditor('openid/trusted', 'account_auth_openid', 'id');
$table_editor->set_where_clause(XDB::format('uid = {?}', S::user()->id()));
- $table_editor->vars['uid']['display'] = false;
+ $table_editor->vars['uid']['display_list'] = false;
+ $table_editor->vars['uid']['display_item'] = false;
$table_editor->describe('url', 'site tiers', true);
$page->assign('deleteonly', true);
$table_editor->apply($page, $action, $id);
$page->assign('title', 'Sites tiers de confiance globaux pour OpenId');
$table_editor = new PLTableEditor('admin/openid/trusted', 'account_auth_openid', 'id');
$table_editor->set_where_clause('uid IS NULL');
- $table_editor->vars['uid']['display'] = false;
+ $table_editor->vars['uid']['display_list'] = false;
+ $table_editor->vars['uid']['display_item'] = false;
$table_editor->describe('url', 'site tiers', true);
$page->assign('readonly', true);
$table_editor->apply($page, $action, $id);