You might be able to do it indirectly, but the short answer is "no". There's no way to tie a permission to a sprint.
What you can do is tie the permission to log work to a status. With workflow properties, you can say "jira.permission.work.denied" on a status, so if your workflow matches the the way the sprint works, you can get there. See https://support.atlassian.com/jira-cloud-administration/docs/use-workflow-properties/ for more details on properties.
Imagine a simple case where you've got a workflow of To Do -> In Progress -> Done, then an issue would move into "in progress" when it is picked up and worked on during a sprint. In this case, you would put the block on work logging on the "to do" status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.