Bug #5180

Documentation: Security Framework, 2 examples have a mistake.

Added by Tommy Seus over 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Category:
Security
Start date:
2009-10-30
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

I think I have found 2 errors in the documentation.

Example roles definition in the FLOW3.yaml file

Customer:

a Role without an Array ( [] ) didnt work.

@Invalid argument supplied for foreach

Packages/Framework/FLOW3/Classes/Security/ACL/PolicyService.php:
00265: foreach ($this->roles[$role] .....@

Example for the ifAccess view helper

<f:security.ifAccess resource="someResource">
This is being shown in case you have access to the given resource
</f:if>

The closing tag is not correct.

--
greetings
Tommy

#1

Updated by Andreas Förthner over 11 years ago

Hi,

thanks for your findings. I would say the first one is no documentation mistake, but an actual bug in the policy service, right? I will fix this asap.

Greets Andi

#2

Updated by Karsten Dambekalns over 11 years ago

Andreas Förthner wrote:

Hi,

thanks for your findings. I would say the first one is no documentation mistake, but an actual bug in the policy service, right? I will fix this asap.

Will the second one be fixed before November 2nd? Then it'll be in time for alpha 6.

#3

Updated by Karsten Dambekalns over 11 years ago

  • Target version set to 1.0 alpha 6
#4

Updated by Karsten Dambekalns over 11 years ago

  • Status changed from New to Accepted
#5

Updated by Andreas Förthner over 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3383.

Also available in: Atom PDF