6.0.0-beta1
7/4/25

[#13568] Unable to set maxmium number of forward recipients
Summary Unable to set maxmium number of forward recipients
Queue Ingo
Queue Version 3.2.1
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester lukas.weiss (at) raiffeisen (dot) it
Created 09/15/2014 (3945 days ago)
Due
Updated 09/17/2014 (3943 days ago)
Assigned
Resolved 09/17/2014 (3943 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/17/2014 08:01:00 AM Michael Slusarz Comment #4
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Ingo 3.2.2
09/17/2014 08:00:54 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit a5cfa8c5bdc6e839de423dba60f835e63ead325e
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Wed Sep 17 01:58:13 2014 -0600

     [mms] Fix checking the 'max_forward' permission (Bug #13568).

     Conflicts:
             ingo/docs/CHANGES
             ingo/package.xml

  ingo/docs/CHANGES  |    1 +
  ingo/lib/Perms.php |    1 +
  ingo/package.xml   |    1 +
  3 files changed, 3 insertions(+), 0 deletions(-)

http://github.com/horde/horde/commit/a5cfa8c5bdc6e839de423dba60f835e63ead325e
09/17/2014 07:58:42 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit b1d01c187a00dd5fef7875d79a893dbf3df6b815
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Wed Sep 17 01:58:13 2014 -0600

     [mms] Fix checking the 'max_forward' permission (Bug #13568).

  ingo/docs/CHANGES  |    1 +
  ingo/lib/Perms.php |    1 +
  ingo/package.xml   |    2 ++
  3 files changed, 4 insertions(+), 0 deletions(-)

http://github.com/horde/horde/commit/b1d01c187a00dd5fef7875d79a893dbf3df6b815
09/15/2014 12:18:48 PM lukas (dot) weiss (at) raiffeisen (dot) it Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ingo
Summary ⇒ Unable to set maxmium number of forward recipients
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
hi,

if i set the maxmium number of forward recipients in the app
permissions, the setting is ignored. this is becaue the app permissions
are returned as an array, but they are then used as an integer:

$max =
$GLOBALS['injector']->getInstance('Horde_Core_Perms')->hasAppPermission(Ingo_Perms::getPerm('max_forward'));

// array (size=1)
//   0 => string '15' (length=2)

..

if ($addr_count > $max) {
..

also, it would be great, if the exception this function throws, would 
be catched and returned as a notification.

thank you!

Saved Queries