mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
8c4e20e649
|
@ -1238,8 +1238,8 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
break;
|
||||
case self::type_email:
|
||||
foreach($values as $value) {
|
||||
$success &= filter_var($value, FILTER_VALIDATE_EMAIL);
|
||||
//preg_match('/^[a-z0-9._-]+@+[a-z0-9._-]+\.+[a-z]{2,63}$/i', $value);
|
||||
//$success &= filter_var($value, FILTER_VALIDATE_EMAIL) ? true : false;
|
||||
$success &= preg_match('/^[a-z0-9._-]+@+[a-z0-9._-]+\.+[a-z]{2,63}$/i', $value);
|
||||
}
|
||||
if(!$success)
|
||||
$this->_validation_error = 5;
|
||||
|
|
|
@ -875,7 +875,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
if (!$this->params['user']->isAdmin())
|
||||
$menuitems['edit_default_keywords'] = array('link'=>"../out/out.UserDefaultKeywords.php", 'label'=>getMLText('edit_default_keywords'));
|
||||
|
||||
$menuitems['edit_notify'] = array('link'=>"../out/out.ManageNotify.php", 'label'=>getMLText('edit_existing_notify'));
|
||||
if ($accessobject->check_view_access('ManageNotify'))
|
||||
$menuitems['edit_notify'] = array('link'=>"../out/out.ManageNotify.php", 'label'=>getMLText('edit_existing_notify'));
|
||||
|
||||
$menuitems['2_factor_auth'] = array('link'=>"../out/out.Setup2Factor.php", 'label'=>'2_factor_auth');
|
||||
|
||||
|
@ -902,8 +903,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
|
||||
$menuitems = array();
|
||||
$menuitems['inprocess'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>getMLText('documents_in_process'));
|
||||
$menuitems['all_documents'] = array('link'=>"../out/out.MyDocuments.php", 'label'=>getMLText('all_documents'));
|
||||
if ($accessobject->check_view_access('MyDocuments')) {
|
||||
$menuitems['inprocess'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>getMLText('documents_in_process'));
|
||||
$menuitems['all_documents'] = array('link'=>"../out/out.MyDocuments.php", 'label'=>getMLText('all_documents'));
|
||||
}
|
||||
if($this->params['workflowmode'] == 'traditional' || $this->params['workflowmode'] == 'traditional_only_approval') {
|
||||
if ($accessobject->check_view_access('ReviewSummary'))
|
||||
$menuitems['review_summary'] = array('link'=>"../out/out.ReviewSummary.php", 'label'=>getMLText('review_summary'));
|
||||
|
|
|
@ -785,7 +785,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
if (!$this->params['user']->isAdmin())
|
||||
$menuitems['edit_default_keywords'] = array('link'=>"../out/out.UserDefaultKeywords.php", 'label'=>getMLText('edit_default_keywords'));
|
||||
|
||||
$menuitems['edit_notify'] = array('link'=>"../out/out.ManageNotify.php", 'label'=>getMLText('edit_existing_notify'));
|
||||
if ($accessobject->check_view_access('ManageNotify'))
|
||||
$menuitems['edit_notify'] = array('link'=>"../out/out.ManageNotify.php", 'label'=>getMLText('edit_existing_notify'));
|
||||
|
||||
$menuitems['2_factor_auth'] = array('link'=>"../out/out.Setup2Factor.php", 'label'=>'2_factor_auth');
|
||||
|
||||
|
@ -808,8 +809,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
$accessobject = $this->params['accessobject'];
|
||||
|
||||
$menuitems = array();
|
||||
$menuitems['inprocess'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>getMLText('documents_in_process'));
|
||||
$menuitems['all_documents'] = array('link'=>"../out/out.MyDocuments.php", 'label'=>getMLText('all_documents'));
|
||||
if ($accessobject->check_view_access('MyDocuments')) {
|
||||
$menuitems['inprocess'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>getMLText('documents_in_process'));
|
||||
$menuitems['all_documents'] = array('link'=>"../out/out.MyDocuments.php", 'label'=>getMLText('all_documents'));
|
||||
}
|
||||
if($this->params['workflowmode'] == 'traditional' || $this->params['workflowmode'] == 'traditional_only_approval') {
|
||||
if ($accessobject->check_view_access('ReviewSummary'))
|
||||
$menuitems['review_summary'] = array('link'=>"../out/out.ReviewSummary.php", 'label'=>getMLText('review_summary'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user