We have moved to Github. Please open tickets there.

Opened 4 years ago

Closed 3 years ago

#1068 closed Enhancement (fixed)

Replace new user permission override hook [Was: New users are not being disabled]

Reported by: marcus Owned by:
Priority: normal Milestone: Elgg 1.8.0
Component: API Version:
Severity: minor Keywords:
Cc: brettp Difficulty:

Description


Change History (9)

comment:1 Changed 4 years ago by marcus

Seems to be a problem with the shortcutted permission check new_user_enable_permissions_check(), also same bug as extensions #193

comment:2 Changed 4 years ago by marcus

This is a result of fixing the last action code.

Last action is updated on save and so the override hook new_user_enable_permissions_check() returns false.

This is not a security problem as they must still activate their accounts before being able to log in, however it prevents user counting from working properly and they are still "activated".

This has an effect on both deactivation and activation.

comment:3 Changed 4 years ago by marcus

The problem is that after the first save of the newly created user it's last action value is set - this means that the identification for newly created users in the hack new_user_enable_permissions_check() will fail the second time arround when it comes to disable the user.

We need a better way of identifying new users so that we can selectively and securely allow a permission override for them.

comment:4 Changed 4 years ago by brettp

  • Component set to API

Ref'd in commit 3377 but I can't type so it's not showing up here.

comment:5 Changed 4 years ago by marcus

Can this issue be closed? Fix appears to be in place.

comment:6 Changed 4 years ago by brettp

I left it open pending a better fix than the hook. If you're content with the hook, it can be closed.

comment:7 Changed 4 years ago by marcus

  • Priority changed from critical to major
  • Summary changed from New users are not being disabled to Replace new user permission override hook [Was: New users are not being disabled]
  • Type changed from defect to enhancement

I think I will downgrade the priority and rename the issue. We have fixed the main problem, now we're talking about improvements...

comment:8 Changed 3 years ago by brettp

  • Milestone set to Elgg 1.8
  • Priority changed from major to minor

comment:9 Changed 3 years ago by brettp

  • Resolution set to fixed
  • Status changed from new to closed

The need for this hook was removed by fixing #617 and #2271.

Note: See TracTickets for help on using tickets.