diff options
author | DNW <dnw.ftw@gmail.com> | 2011-08-29 23:58:32 +0400 |
---|---|---|
committer | DNW <dnw.ftw@gmail.com> | 2011-10-01 20:37:48 +0400 |
commit | a8975fe6bc7cecd2b3e42dd61cb929788e8f006b (patch) | |
tree | 74ea02cb7dd475200f2817b1fce2cdd23ce0444f /src/murmur/MurmurIce.cpp | |
parent | 0e4d963a5a762520945d01a328d17688fb6c2fd8 (diff) |
Add Server::effectivePermissions() to ICE (https://sourceforge.net/tracker/?func=detail&aid=3389065&group_id=147372&atid=768008)
Diffstat (limited to 'src/murmur/MurmurIce.cpp')
-rw-r--r-- | src/murmur/MurmurIce.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/murmur/MurmurIce.cpp b/src/murmur/MurmurIce.cpp index 0d272ae06..c1d5c823c 100644 --- a/src/murmur/MurmurIce.cpp +++ b/src/murmur/MurmurIce.cpp @@ -1019,6 +1019,14 @@ static void impl_Server_hasPermission(const ::Murmur::AMD_Server_hasPermissionPt cb->ice_response(server->hasPermission(user, channel, static_cast<ChanACL::Perm>(perm))); } +#define ACCESS_Server_effectivePermissions_READ +static void impl_Server_effectivePermissions(const ::Murmur::AMD_Server_effectivePermissionsPtr cb, int server_id, ::Ice::Int session, ::Ice::Int channelid) { + NEED_SERVER; + NEED_PLAYER; + NEED_CHANNEL; + cb->ice_response(server->effectivePermissions(user, channel)); +} + static void impl_Server_addContextCallback(const Murmur::AMD_Server_addContextCallbackPtr cb, int server_id, ::Ice::Int session, const ::std::string& action, const ::std::string& text, const ::Murmur::ServerContextCallbackPrx& cbptr, int ctx) { NEED_SERVER; NEED_PLAYER; |