Skip to content

Commit

Permalink
emsmdb: allow rop_emptyfolder operations in public stores
Browse files Browse the repository at this point in the history
MS-OXCFOLD v24 §2.2.19 specifies that ropEmptyFolder is applicable to
public stores as well.

Fixes: gromox-0~666
References: DESK-2446
  • Loading branch information
jengelh committed Aug 27, 2024
1 parent 4657751 commit 33f4f30
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions exch/emsmdb/oxcfold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,13 +689,6 @@ static ec_error_t oxcfold_emptyfolder(unsigned int flags,
auto plogon = rop_processor_get_logon_object(plogmap, logon_id);
if (plogon == nullptr)
return ecError;
if (!plogon->is_private())
/* just like Exchange 2013 or later */
return ecNotSupported;
auto fid_val = rop_util_get_gc_value(pfolder->folder_id);
if (fid_val == PRIVATE_FID_ROOT ||
fid_val == PRIVATE_FID_IPMSUBTREE)
return ecAccessDenied;
auto dir = plogon->get_dir();
auto username = plogon->eff_user();
if (username != STORE_OWNER_GRANTED) {
Expand Down

0 comments on commit 33f4f30

Please sign in to comment.