bookingactivities / booking-activities

Wordpress plugin booking system
GNU General Public License v3.0
29 stars 10 forks source link

Permissions seem not be working with latest version 1.15 #162

Closed rayedgar closed 2 years ago

rayedgar commented 2 years ago

HELP!! Permissions seem not be working with latest version 1.15

Users that are assigned in calendar editor don't have access any more after update.

rayedgar commented 2 years ago

I reinstalled 1.14 then the permissions worked, but it messed up all the calendar setting. and the calendar option in forms was empty. We really have a problem now since our admin needs through the permissions access.

yoancutillas commented 2 years ago

Thanks for reporting! I was able to reproduce the bug and fix it for the next version (1.15.1)

Replace wp-content\plugins\booking-activities\model\model-templates.php line 902 if( $user_id < -1 ) { $user_id = get_current_user_id(); } with if( $user_id <= -1 ) { $user_id = get_current_user_id(); }

rayedgar commented 2 years ago

Thanks for the fix!

Hartelijke groet, Ray Edgar​

On 1 Sep 2022, 15:19, at 15:19, yoancutillas @.***> wrote:

Thanks for reporting! I was able to reproduce the bug and fix it for the next version (1.15.1)

Replace wp-content\plugins\booking-activities\model\model-templates.php line 902 if( $user_id < -1 ) { $user_id = get_current_user_id(); } with if( $user_id <= -1 ) { $user_id = get_current_user_id(); }

-- Reply to this email directly or view it on GitHub: https://github.com/bookingactivities/booking-activities/issues/162#issuecomment-1234271833 You are receiving this because you authored the thread.

Message ID: @.***>