projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-14171: Adding Core infastructure to get permissions from components that are...
[civicrm-core.git]
/
CRM
/
Event
/
Info.php
diff --git
a/CRM/Event/Info.php
b/CRM/Event/Info.php
index f89ecf8cb48fb038bae72e6fa6c180cdb93f3df6..57c8d6828108c831c0d1551fd385f3cabecca114 100644
(file)
--- a/
CRM/Event/Info.php
+++ b/
CRM/Event/Info.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
3
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-31,7
+31,7
@@
* abstract class.
*
* @package CRM
* abstract class.
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
3
+ * @copyright CiviCRM LLC (c) 2004-201
4
* $Id$
*
*/
* $Id$
*
*/
@@
-64,6
+64,12
@@
class CRM_Event_Info extends CRM_Core_Component_Info {
);
}
);
}
+ public function getAnonymousPermissionWarnings() {
+ return array(
+ 'access CiviEvent',
+ );
+ }
+
// docs inherited from interface
public function getUserDashboardElement() {
return array('name' => ts('Events'),
// docs inherited from interface
public function getUserDashboardElement() {
return array('name' => ts('Events'),
@@
-116,7
+122,7
@@
class CRM_Event_Info extends CRM_Core_Component_Info {
'query' => "reset=1&action=add&context=standalone&mode=live",
'ref' => 'new-participant-cc',
'title' => $title,
'query' => "reset=1&action=add&context=standalone&mode=live",
'ref' => 'new-participant-cc',
'title' => $title,
- )));
+ )));
}
}
}
}
}
}