fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16708] more on eventplanner


From: sigurdne
Subject: [Fmsystem-commits] [16708] more on eventplanner
Date: Tue, 9 May 2017 04:53:17 -0400 (EDT)

Revision: 16708
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16708
Author:   sigurdne
Date:     2017-05-09 04:53:16 -0400 (Tue, 09 May 2017)
Log Message:
-----------
more on eventplanner

Modified Paths:
--------------
    trunk/eventplanner/inc/class.uiapplication.inc.php
    trunk/eventplanner/inc/class.uibooking.inc.php
    trunk/eventplanner/inc/class.uicustomer.inc.php
    trunk/eventplanner/inc/class.uivendor.inc.php
    trunk/eventplanner/setup/phpgw_no.lang
    trunk/phpgwapi/inc/class.socommon.inc.php

Modified: trunk/eventplanner/inc/class.uiapplication.inc.php
===================================================================
--- trunk/eventplanner/inc/class.uiapplication.inc.php  2017-05-08 13:50:51 UTC 
(rev 16707)
+++ trunk/eventplanner/inc/class.uiapplication.inc.php  2017-05-09 08:53:16 UTC 
(rev 16708)
@@ -127,7 +127,12 @@
                {
                        if (empty($this->permissions[PHPGW_ACL_READ]))
                        {
-                               phpgw::no_access();
+                               $message = '';
+                               if($this->currentapp == 'eventplannerfrontend')
+                               {
+                                       $message = lang('you need to log in to 
access this page.');
+                               }
+                               phpgw::no_access(false, $message);
                        }
 
                        if (phpgw::get_var('phpgw_return_as') == 'json')

Modified: trunk/eventplanner/inc/class.uibooking.inc.php
===================================================================
--- trunk/eventplanner/inc/class.uibooking.inc.php      2017-05-08 13:50:51 UTC 
(rev 16707)
+++ trunk/eventplanner/inc/class.uibooking.inc.php      2017-05-09 08:53:16 UTC 
(rev 16708)
@@ -160,7 +160,12 @@
                        $GLOBALS['phpgw_info']['flags']['app_header'] .= '::' . 
lang('edit');
                        if (empty($this->permissions[PHPGW_ACL_ADD]))
                        {
-                               phpgw::no_access();
+                               $message = '';
+                               if($this->currentapp == 'eventplannerfrontend')
+                               {
+                                       $message = lang('you need to log in to 
access this page.');
+                               }
+                               phpgw::no_access(false, $message);
                        }
 
                        if (!empty($values['object']))

Modified: trunk/eventplanner/inc/class.uicustomer.inc.php
===================================================================
--- trunk/eventplanner/inc/class.uicustomer.inc.php     2017-05-08 13:50:51 UTC 
(rev 16707)
+++ trunk/eventplanner/inc/class.uicustomer.inc.php     2017-05-09 08:53:16 UTC 
(rev 16708)
@@ -85,7 +85,12 @@
                {
                        if (empty($this->permissions[PHPGW_ACL_READ]))
                        {
-                               phpgw::no_access();
+                               $message = '';
+                               if($this->currentapp == 'eventplannerfrontend')
+                               {
+                                       $message = lang('you need to log in to 
access this page.');
+                               }
+                               phpgw::no_access(false, $message);
                        }
 
                        if (phpgw::get_var('phpgw_return_as') == 'json')

Modified: trunk/eventplanner/inc/class.uivendor.inc.php
===================================================================
--- trunk/eventplanner/inc/class.uivendor.inc.php       2017-05-08 13:50:51 UTC 
(rev 16707)
+++ trunk/eventplanner/inc/class.uivendor.inc.php       2017-05-09 08:53:16 UTC 
(rev 16708)
@@ -86,7 +86,12 @@
                {
                        if (empty($this->permissions[PHPGW_ACL_READ]))
                        {
-                               phpgw::no_access();
+                               $message = '';
+                               if($this->currentapp == 'eventplannerfrontend')
+                               {
+                                       $message = lang('you need to log in to 
access this page.');
+                               }
+                               phpgw::no_access(false, $message);
                        }
 
                        if (phpgw::get_var('phpgw_return_as') == 'json')

Modified: trunk/eventplanner/setup/phpgw_no.lang
===================================================================
--- trunk/eventplanner/setup/phpgw_no.lang      2017-05-08 13:50:51 UTC (rev 
16707)
+++ trunk/eventplanner/setup/phpgw_no.lang      2017-05-09 08:53:16 UTC (rev 
16708)
@@ -122,4 +122,6 @@
 hours  eventplanner    no      Timer
 there is a minimum interval of %1 hours        eventplanner    no      Det er 
et minimumsintervall på %1 time(r)
 summary        eventplanner    no      kortversjon programbeskrivelse
-organization number already exists for %1      eventplanner    no      
Organisasjonsnummeret er allerede registrert på %1.
\ No newline at end of file
+organization number already exists for %1      eventplanner    no      
Organisasjonsnummeret er allerede registrert på %1.
+you need to log in to access this page.        eventplanner    no      Du må 
logge deg på for å få tilgang til denne siden.
+do you represent the owner of this entry?      eventplanner    no      
Representerer du eieren av denne posten?
\ No newline at end of file

Modified: trunk/phpgwapi/inc/class.socommon.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.socommon.inc.php   2017-05-08 13:50:51 UTC (rev 
16707)
+++ trunk/phpgwapi/inc/class.socommon.inc.php   2017-05-09 08:53:16 UTC (rev 
16708)
@@ -414,7 +414,8 @@
                        {
                                if($acl_condition && !$acl_test)
                                {
-                                       phpgw::no_access();
+                                       $message = lang('do you represent the 
owner of this entry?');
+                                       phpgw::no_access(false, $message);
                                }
 
                                foreach ($this->fields as $field => $params)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]