Results 1 to 10 of 10

Thread: "DELETE USER" FOR EVERYBODY in 4.5.1f

  1. #1
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default "DELETE USER" FOR EVERYBODY in 4.5.1f

    Sorry, I had to post this once again to make sure it gets attention:

    I appreciated the "old" way of not being able to delete a user for various reasons. But it's exactly the other way round now - EVERYBODY can go to "Employees" (on top of the screen), choose one or more users and simply delete them (including himself).

    This is enormously dangerous and I believe renders most of the implementations useless!

    Can somebody PLEASE point me to a quick fix? I am not a programmer but I can cut and paste, delete or comment something out.

    Thanks in advance
    rl

    PS: I am on the "f" version, 6.06LTS, mysql5
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  2. #2
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Smile Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    Hi Roblaus!

    We have developed hot fix for your SugarCRM.

    You can download the file

    here

    Be careful this file is for SugarCRM Open Source 4.5.1f

    If you have any other questions about SugarCRM feel free to contact us.
    Last edited by pblag; 2007-10-21 at 10:26 AM.
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  3. #3
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    Hi,

    Tx, it did the trick. I still wonder how such a serious issue could have gone unnoticed...

    However, 5.0b2 has a similar issue - user deletion isn't possible but editing is - again for everybody...

    rgds
    rl
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  4. #4
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    This has been fixed in 451g (bug 16658). 451g is due within days.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  5. #5
    bartfai is offline Junior Member
    Join Date
    Nov 2007
    Posts
    2

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    Or maybe dont!

    I downloaded 451g, but EVERYBODY can go to "Employees" (on top of the screen), choose one or more users and simply Edit them. Why?

  6. #6
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    Hi bartfai, this is not what I see on 451g demo system.

    Sure, the admin user can select an employee and edit the employee.

    But any "normal" (non-admin) user can only view, not edit, an employee.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  7. #7
    bartfai is offline Junior Member
    Join Date
    Nov 2007
    Posts
    2

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    I have other one quastion.

    Is the user (will) in the demo is a normal user (non-admin)?
    Because 'will' can edit every user in the Employee with pencil icon. Its normal?

    Sorry my english
    Last edited by bartfai; 2007-11-03 at 02:45 PM.

  8. #8
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    I fixed the delete-problem by a little mySQL trick.
    Since mySQL is able to define triggers I defined a trigger which prevents the delete column to be set to 0.

    Code:
    DELIMITER $$
    DROP TRIGGER IF EXISTS tr_upd_users$$
    CREATE TRIGGER tr_upd_users BEFORE UPDATE ON users
    FOR EACH ROW
    BEGIN
       IF NEW.deleted = 0 THEN
          SET NEW.deleted = 1;
           -- here you can define additional actions to remember that somebody tried to delete a user
       END IF;
    END$$
    
    DELIMITER;
    Be careful then working with triggers.

    hk

  9. #9
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    Hi bartfai and others, thanks for following through on this. I was looking only for the delete case in my tests. But based on bartfai's input I ran a few more tests and confirmed two issues:

    Bug 17344 -- it is possible for a non-admin user to set 'IsAdmin' via Mass Update to oneself (or others)
    Bug 17345 -- it is possible for a non-admin user to edit other Employee records.

    You can monitor our fixes for these in the Bug Tracker (see the link for the Bug Tracker in my signature).

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  10. #10
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: "DELETE USER" FOR EVERYBODY in 4.5.1f

    OK, an update on this.

    Bug 17344 (It is possible as a non-admin user to set IsAdmin=Yes to oneself via Employees Mass Update) actually has been fixed in the 451g release. The demo system has been updated to incorporate this fix. You'll see that if you build your own demo here.

    Bug 17345 (It is possible as a non-admin user to edit other Employee records) remains queued for a subsequent patch, possibly 451h.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can you run 4.5.1F a second time?
    By al3 in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-10-18, 03:27 AM
  2. Two 4.5.1f Patch versions?
    By sduda in forum Installation and Upgrade Help
    Replies: 6
    Last Post: 2007-10-05, 06:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •