The current presentation when fetched by a common user (not presenter), ends up with some crashes in the console (because it hasn't permission to fetch presentation data). So to avoid this situation, the developer can check if the current user has presenter, to proceed with visualizing the content of current presentation.
What does this PR do?
It adds the new hook useCurrentUser. It pairs with the PR https://github.com/bigbluebutton/bigbluebutton/pull/18799 from the core BBB
Motivation
The current presentation when fetched by a common user (not presenter), ends up with some crashes in the console (because it hasn't permission to fetch presentation data). So to avoid this situation, the developer can check if the current user has presenter, to proceed with visualizing the content of current presentation.