You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The canAccessRoom Meteor method in server/methods/canAccessRoom.ts is marked as deprecated with a warning message indicating it will be removed after version 5.0. This method is only enabled when the environment variable ALLOW_CANACCESSROOM_METHOD is set to "yes" or "true".
Expected Behavior
The deprecated method should be removed, and any code relying on it should use the canAccessRoomAsync function from the Authorization service directly.
Current Behavior
The deprecated method is still available when the environment variable is set, displaying a warning message: console.warn('Method canAccessRoom is deprecated and will be removed after version 5.0');
Steps to Reproduce
Set environment variable ALLOW_CANACCESSROOM_METHOD=true
Start Rocket.Chat server
Check server logs for the deprecation warning
Relevant Code
// server/methods/canAccessRoom.tsif(['yes','true'].includes(String(process.env.ALLOW_CANACCESSROOM_METHOD).toLowerCase())){console.warn('Method canAccessRoom is deprecated and will be removed after version 5.0');Meteor.methods<ServerMethods>({asynccanAccessRoom(rid,userId,extraData){// Method implementation}});}
The text was updated successfully, but these errors were encountered:
blackmamba1231
changed the title
Remove deprecated canAccessRoom method scheduled for removal after v5.0
Remove deprecated canAccessRoom method still present in v7.4.0
Mar 8, 2025
Description
The
canAccessRoom
Meteor method inserver/methods/canAccessRoom.ts
is marked as deprecated with a warning message indicating it will be removed after version 5.0. This method is only enabled when the environment variableALLOW_CANACCESSROOM_METHOD
is set to "yes" or "true".Expected Behavior
The deprecated method should be removed, and any code relying on it should use the
canAccessRoomAsync
function from the Authorization service directly.Current Behavior
The deprecated method is still available when the environment variable is set, displaying a warning message:
console.warn('Method canAccessRoom is deprecated and will be removed after version 5.0');
Steps to Reproduce
ALLOW_CANACCESSROOM_METHOD=true
Relevant Code
The text was updated successfully, but these errors were encountered: