fn require_authorization(
    conn: &rusqlite::Connection,
    user: &User,
    room: &Room,
    req: AuthorizationRequired,
) -> Result<(), Error> {
    require_authorization_impl(conn, &user, &room, req, true)
}
/// Verify that the user has the given permissions for the given room (and isn't banned), and
/// updates the last activity record for the user in the room.  Returns an Error::Unauthorized if
/// the user does not have the required permissions, Error::DatabaseFailedInternally on database
/// error, and an empty tuple on success.
///
/// `conn` is expected to be either a connection or an open transaction.
Verify that the user has the given permissions for the given room (and isn't banned), and
updates the last activity record for the user in the room.  Returns an Error::Unauthorized if
the user does not have the required permissions, Error::DatabaseFailedInternally on database
error, and an empty tuple on success.

`conn` is expected to be either a connection or an open transaction.
Verify that the user has the given permissions for the given room ( and isn ' t banned ) and updates the last activity record for the user in the room . Returns an Error :: Unauthorized if the user does not have the required permissions Error :: DatabaseFailedInternally on database error and an empty tuple on success . ` conn ` is expected to be either a connection or an open transaction .
fn require_authorization(
    conn: &rusqlite::Connection,
    user: &User,
    room: &Room,
    req: AuthorizationRequired,
) -> Result<(), Error> {
    require_authorization_impl(conn, &user, &room, req, true)
}
fn require_authorization ( conn : & rusqlite :: Connection , user : & User , room : & Room , req : AuthorizationRequired , ) -> Result < ( ) , Error > { require_authorization_impl ( conn , & user , & room , req , true ) }
Verify that the user has the given permissions for the given room (and isn't banned), and
updates the last activity record for the user in the room.
Verify that the user has the given permissions for the given room ( and isn ' t banned ) and updates the last activity record for the user in the room .
conn
&rusqlite::Connection
user
&User
room
&Room
req
AuthorizationRequired
conn
&rusqlite::Connection
user
&User
room
&Room
req
AuthorizationRequired