Skip to content

Commit 340bc2b

Browse files
committed
ACL 1.7.0
1 parent 8a46072 commit 340bc2b

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<a name="1.7.0"></a>
2+
# [1.7.0](https://github.com/flextype-plugins/acl) (2020-12-29)
3+
4+
### Features
5+
6+
* **core** update code base for new Flextype 0.9.14
7+
* **core** Moving to PHP 7.4
8+
* **core** use new TWIG Plugin 1.7.0
9+
110
<a name="1.6.0"></a>
211
# [1.6.0](https://github.com/flextype-plugins/acl) (2020-12-20)
312

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<h1 align="center">ACL Plugin for <a href="http://flextype.org/">Flextype</a></h1>
1+
<h1 align="center">ACL Plugin for <a href="https://flextype.org/">Flextype</a></h1>
22

33
<p align="center">
4-
<a href="https://github.com/flextype-plugins/acl/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/acl.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/acl"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/acl"><img src="https://img.shields.io/github/downloads/flextype-plugins/acl/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.13-green.svg" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
4+
<a href="https://github.com/flextype-plugins/acl/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-plugins/flextype.acl.svg?label=version&color=black"></a> <a href="https://github.com/flextype-plugins/acl"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-plugins/acl"><img src="https://img.shields.io/github/downloads/flextype-plugins/acl/total.svg?color=black" alt="Total downloads"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/Flextype-0.9.14-green.svg" alt="Flextype"></a> <a href=""><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
55
</p>
66

77
## Features
@@ -15,7 +15,7 @@ The following dependencies need to be downloaded and installed for ACL Plugin.
1515

1616
| Item | Version | Download |
1717
|---|---|---|
18-
| [flextype](https://github.com/flextype/flextype) | 0.9.13 | [download](https://github.com/flextype/flextype/releases) |
18+
| [flextype](https://github.com/flextype/flextype) | 0.9.14 | [download](https://github.com/flextype/flextype/releases) |
1919
| [twig](https://github.com/flextype-plugins/twig) | >=1.0.0 | [download](https://github.com/flextype-plugins/twig/releases) |
2020

2121
## Installation
@@ -447,7 +447,7 @@ You may restrict access for specific users to your specific content inside the T
447447
#### Show private content for logged in users
448448

449449
```
450-
{% if acl.isUserLoggedIn() %}
450+
{% if flextype.acl.isUserLoggedIn() %}
451451
Private content here..
452452
{% else %}
453453
Public content for users is here...
@@ -457,7 +457,7 @@ You may restrict access for specific users to your specific content inside the T
457457
#### Show private content for users with roles: admin and student
458458

459459
```
460-
{% if acl.isUserLoggedInRolesIn('admin, student') %}
460+
{% if flextype.acl.isUserLoggedInRolesIn('admin, student') %}
461461
Private content here..
462462
{% else %}
463463
Public content for users is here...
@@ -467,7 +467,7 @@ You may restrict access for specific users to your specific content inside the T
467467
#### Show private content for users with uuids ea7432a3-b2d5-4b04-b31d-1c5acc7a55e2 and d549af27-79a0-44f2-b9b1-e82b47bf87e2
468468

469469
```
470-
{% if acl.isUserLoggedInUuidIn('ea7432a3-b2d5-4b04-b31d-1c5acc7a55e2, d549af27-79a0-44f2-b9b1-e82b47bf87e2') %}
470+
{% if flextype.acl.isUserLoggedInUuidIn('ea7432a3-b2d5-4b04-b31d-1c5acc7a55e2, d549af27-79a0-44f2-b9b1-e82b47bf87e2') %}
471471
Private content here..
472472
{% else %}
473473
Public content for users is here...
@@ -477,7 +477,7 @@ You may restrict access for specific users to your specific content inside the T
477477
#### Show private content for users with emails jack@flextype.org, sam@flextype.org
478478

479479
```
480-
{% if acl.isUserLoggedInEmailIn('jack@flextype.org, sam@flextype.org') %}
480+
{% if flextype.acl.isUserLoggedInEmailIn('jack@flextype.org, sam@flextype.org') %}
481481
Public content for users is here...
482482
{% else %}
483483
Public content for users is here...
@@ -487,22 +487,22 @@ You may restrict access for specific users to your specific content inside the T
487487
#### Show logged in email
488488

489489
```
490-
Hello {{ acl.getUserLoggedInEmail() }}
490+
Hello {{ flextype.acl.getUserLoggedInEmail() }}
491491
```
492492

493493
#### Show logged in uuid
494494

495495
```
496-
Hello {{ acl.getUserLoggedInEmail() }},
497-
your uuid: {{ acl.getUserLoggedInUuid() }}
496+
Hello {{ flextype.acl.getUserLoggedInEmail() }},
497+
your uuid: {{ flextype.acl.getUserLoggedInUuid() }}
498498
```
499499

500500
#### Show logged in roles
501501

502502
```
503-
Hello {{ acl.getUserLoggedInEmail() }},
504-
your uuid: {{ acl.getUserLoggedInUuid() }}
505-
and your roles: {{ acl.getUserLoggedInRoles() }}
503+
Hello {{ flextype.acl.getUserLoggedInEmail() }},
504+
your uuid: {{ flextype.acl.getUserLoggedInUuid() }}
505+
and your roles: {{ flextype.acl.getUserLoggedInRoles() }}
506506
```
507507

508508
### Restrict access in the PHP

plugin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: ACL
2-
version: 1.6.0
2+
version: 1.7.0
33
description: ACL plugin for Flextype.
44
icon: fas fa-users-cog
55
author:
@@ -11,5 +11,5 @@ bugs: https://github.com/flextype-plugins/acl/issues
1111
license: MIT
1212

1313
dependencies:
14-
flextype: 0.9.13
14+
flextype: 0.9.14
1515
twig: '>=1.0.0'

0 commit comments

Comments
 (0)