Commit 8550401c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Pushed this patch prematurely by mistake (see bug #495064)

Revert "Prevent users from self deleting if they didn't authenticate from an internal auth mechanism"

This reverts commit 5a595f72.
parent b8788052
......@@ -730,9 +730,6 @@ class User {
public function can_delete_self() {
if (!$this->get('admin')) {
if (!record_exists('auth_instance', 'id', $this->get('authinstance'), 'authname', 'internal')) {
return false;
}
// Users who belong to an institution that doesn't allow
// registration cannot delete themselves.
foreach ($this->get('institutions') as $i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment