Page 1 of 9 12345 ... LastLast
Results 1 to 10 of 86

Thread: Field Level Access Control - BETA module

  1. #1
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Field Level Access Control - BETA module

    Hi,

    I am uploading a BETA version of a field level access control module I built for SugarCE here.
    Please try it out and give me some feedback for a final version.

    The license on this BETA is that you can use it for evaluation and if you give feedback you can keep using the final version when released.

    Tx
    Last edited by mvngti; 2009-02-02 at 08:11 PM.
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  2. #2
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Field Level Access Control - BETA module

    If this works I would be very pleased

    A few things I noticed:

    - you still use the old way of adding logic hooks, this can be done in manifest.php now (since 5.2, so you'll probably need to keep both). There is no uninstalling your logic hook right now

    - your module has a lowercase name and underscores. No biggie, but I would prefer it if module names were consistent

    I'm very excited and I hope this gets production-ready someday . Will try to install and play with it tomorrow.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  3. #3
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Field Level Access Control - BETA module

    I'm posting a slight improvement. Previous one did not display access dropdown correctly.

    M
    Attached Files Attached Files
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  4. #4
    anvaruz is offline Senior Member
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    26

    Default Re: Field Level Access Control - BETA module

    This is unbelievable! I’ve been waiting for this for more than a year.
    Not sleeping tonight - testing)
    cannot find any problems yet

    Field level access is the only issue which was holding me in implementing SugarCRM in our organisation; we are a charity and unfortunately cannot afford to get Professional or Enterprise edition.
    Looking forward for final release.
    Thank you for your work!

  5. #5
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Smile Re: Field Level Access Control - BETA module

    Quote Originally Posted by SugarDev.net View Post
    - you still use the old way of adding logic hooks, this can be done in manifest.php now (since 5.2, so you'll probably need to keep both).

    I'm very excited and I hope this gets production-ready someday . Will try to install and play with it tomorrow.
    Tx, I want it production ready ASAP. Could you post references to the "new" way of adding logic hooks?
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  6. #6
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Field Level Access Control - BETA module

    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  7. #7
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Field Level Access Control - BETA module

    Okay I'm just throwing some stuff I see here, it's up to you to prioritze them .

    - on a clean install there are no roles and your module says "list_fields" in the dropdown.
    - When viewing a field in detailview, the fields_access_list doesn't work. I think it's best if you move the fields_access_list from your bean to the application language, that's where it belongs
    - I hope you don't mind I capslocked a few words on your query to make it more readable and safer:
    $query = "SELECT * from acl_roles_users LEFT JOIN acl_fields USING (role_id) WHERE acl_roles_users.deleted=0 AND acl_fields.deleted=0 AND user_id='".$current_user->id."' ORDER by category, name";
    - It may be a good time to start making a roadmap for this project. I see that you want to make a list of fields in the future? ("Currently you have to type in the field name (precisely as it is in the selected module"). That sounds like a plan? .
    - The module is accessible by non-admins at the moment
    - Internally your module speaks of "category". It may be best if this is called "module"
    - Listview is not supported, I got it working with:

    PHP Code:
    $hook_array['process_record'] = Array();
    $hook_array['process_record'][] = Array(1'acl_fields''modules/acl_fields/fields_logic.php','acl_fields_logic''limit_views'); 
    You will need this logic hook for listviews.
    and

    PHP Code:
                    if (  (eregi('detail',$view) && $limit 1) ||
                          (
    eregi('list',$view)   && $limit 0) ||
                          (
    eregi('index',$view)  && $limit 0) ||
                          (
    eregi('edit',$view) && $limit 0)   )
                    {
              
    //print_r($bean);exit;
                        //unset($bean->field_name_map[$fieldname]);
                        
    unset($bean->field_defs[$fieldname]);
              unset(
    $bean->$fieldname);
                        
    $bean->field_defs[$fieldname][acl] = $limit;
                        
    //$mod_strings[$vname] = '';
                    

    This is not perfect, since the table header is still there, only the value is empty in ListView. I'm sure you're working on this, since the commented lines...
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  8. #8
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Field Level Access Control - BETA module

    Great feedback tx.
    I will put up a roadmap sometime next week some time.
    I want to get this up an running within a couple of weeks.
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  9. #9
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Field Level Access Control - BETA module

    Great to hear. I also noticed that the module still has a Dashlet. Seems unneeded.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  10. #10
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Field Level Access Control - BETA module

    I am moving this module to a sugarforge project here http://www.sugarforge.org/projects/fieldacl

    I will upload a readme and a roadmap there in the next day or two.
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

Page 1 of 9 12345 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Very granular (field-level) access control
    By dantrainor in forum Help
    Replies: 3
    Last Post: 2009-01-30, 08:21 AM
  2. teams access control for custom module
    By stasdu in forum Developer Help
    Replies: 5
    Last Post: 2006-12-13, 01:22 PM
  3. Replies: 0
    Last Post: 2006-04-10, 06:31 PM

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
  •