File tree 6 files changed +23
-2
lines changed
6 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## Unreleased
8
8
9
+ ## [ 1.2.4] - 2022-09-30
10
+ ### Added
11
+ - Check if user has 'managed_group_admin' permission [ #2429 ] ( https://github.com/rokwire/illinois-app/issues/2429 ) .
12
+
13
+ ## [ 1.2.3] - 2022-09-28
14
+ ### Changed
15
+ - Show hidden groups only for admins - hide for all others [ #163 ] ( https://github.com/rokwire/app-flutter-plugin/issues/163 ) .
16
+
9
17
## [ 1.2.2] - 2022-09-16
10
18
### Added
11
19
- Search group by name support hidden groups [ #2403 ] ( https://github.com/rokwire/illinois-app/issues/2403 ) .
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Patches for [ **illinois-app** ] will only be applied to the following versions:
6
6
7
7
| Version | Supported |
8
8
| ------- | ------------------ |
9
+ | 1.2.4 | :white_check_mark : |
10
+ | 1.2.3 | :white_check_mark : |
9
11
| 1.2.2 | :white_check_mark : |
10
12
| 1.2.0 | :white_check_mark : |
11
13
| 1.1.0 | :white_check_mark : |
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ packages:
638
638
path: ".."
639
639
relative: true
640
640
source: path
641
- version: "1.2.2 "
641
+ version: "1.2.4 "
642
642
shared_preferences:
643
643
dependency: transitive
644
644
description:
Original file line number Diff line number Diff line change @@ -216,6 +216,10 @@ class Auth2Account {
216
216
return linkedTypes;
217
217
}
218
218
219
+ bool get isManagedGroupAdmin {
220
+ return hasPermission ('managed_group_admin' );
221
+ }
222
+
219
223
bool hasRole (String role) => (Auth2StringEntry .findInList (roles, name: role) != null );
220
224
bool hasPermission (String premission) => (Auth2StringEntry .findInList (permissions, name: premission) != null );
221
225
bool bellongsToGroup (String group) => (Auth2StringEntry .findInList (groups, name: group) != null );
Original file line number Diff line number Diff line change @@ -227,6 +227,13 @@ class Group {
227
227
return (currentUserIsAdmin == true ) && (authManEnabled == true );
228
228
}
229
229
230
+ ///
231
+ /// Show hidden group only if the user is admin
232
+ ///
233
+ bool get isVisible {
234
+ return ! (hiddenForSearch ?? false ) || currentUserIsAdmin;
235
+ }
236
+
230
237
static List <Group >? listFromJson (List <dynamic >? json) {
231
238
List <Group >? values;
232
239
if (json != null ) {
Original file line number Diff line number Diff line change 1
1
name : rokwire_plugin
2
2
description : Rokwire Flutter plugin
3
- version : 1.2.2
3
+ version : 1.2.4
4
4
homepage :
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments