Group permissions for albums
-
We have different groups on our side.
Take, for example, the Harley-Davidson group.
I also have an album Harley motorcycles.
Is there a possibility that only the group “Harley-Davidson” can see the album “Harley motorcycles” and all the other groups can’t?
-
Not yet, but i will think about it.
How do i know to what group a user belongs? Do they have a special role/capability?I assigned certain roles to the users in the backend, all of which have the permissions such as Participant.
In addition, the groups should receive different extra permissions so that only they can see their area.
I assume you are familiar with plugins like https://ww.wp.xz.cn/plugins/user-role-editor/ where you can easily create and assign capabilities.
I can add a setting in the album information where you can specify one out of all existing capabilities.
When such a capability is set, the akbum and its conbtent will only be visible by:
admin, wppa superusers and users that have the selected capability.Would this fit your needs?
Yes, that would be great….
You can now download and install this pre-release:
https://downloads.wp.xz.cn/plugin/wp-photo-album-plus.9.1.06.006.zipHere is the full changelog:
= 9.1.06 = * Type slphoto stopped working. Fixed. * Admin can now Edit/Quick/Bulk edit all media items, sorted by descending timestamp, paginated. See the Album admin screen under the search bar. * The shortcode attribute 'random' now randomizes the correct selections in shrotcode album types '#lasten' and '#topten'. * New shortcode attribute 'max' Overrules or set a max number of media items. Example: [wppa type="thumbs" album="#tags,Test" max="10"] * Virtual tags implemented for year and month. Currently implemented: $yyyymm- -> 202511 Previous month in 2 digit year 4 digit month $yyyymm -> 202512 Current month in 2 digit year 4 digit month $yymm- -> 2511 Previous month in 2 digit year 2 digit month $yymm -> 2512 Current month in 2 digit year 2 digit month $yyyy- -> 2024 Previous year in 4 digits $yyyy -> 2025 Current year in 4 digits $yy- -> 24 Previous year in 2 digits $yy -> 25 Current year in 2 digits Example: [wppa type="..." album="#tags,$yymm-;$yymm" random max="10"] will give: Max 10 random selected items tagged 2511 or 2512 * You can now limit frontend visibility of items on an album basis to users that have a specific role or capability. See Album Admin -> Edit -> Show the album settings -> Tab DisplayNote the last item
If I select a group there, they can’t see the album.
Shouldn’t it be the case that only the selected group can see the album?
-
This reply was modified 4 months ago by
Reiner.
I will test it further, but it should work that these users can see the album and its content…
Correct. For photos it works, for albums not yet. Sorry, pls wait for the next pre-release
To be continued…There was a confusion between internal rolename ( like administrator ) nand external e.g. Adinistrator
https://downloads.wp.xz.cn/plugin/wp-photo-album-plus.9.1.06.007.zip fixes it.
You should check/re-select the setting in the album settings to correct it!!!
-
This reply was modified 4 months ago by
Jacob N. Breetvelt. Reason: redo
Now it’s working great.
Thank you very much and Merry Christmas.
-
This reply was modified 4 months ago by
You must be logged in to reply to this topic.