Check user is host for host-broadcasted project messages
This commit is contained in:
parent
a3bc48261e
commit
18b31f1552
4 changed files with 51 additions and 78 deletions
|
@ -60,8 +60,10 @@ macro_rules! request_messages {
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! entity_messages {
|
||||
($id_field:ident, $($name:ident),* $(,)?) => {
|
||||
({$id_field:ident, $entity_type:ty}, $($name:ident),* $(,)?) => {
|
||||
$(impl EntityMessage for $name {
|
||||
type Entity = $entity_type;
|
||||
|
||||
fn remote_entity_id(&self) -> u64 {
|
||||
self.$id_field
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue