← Back to team overview

openerp-india team mailing list archive

[Bug 1021378] Re: "create" permission in res.users dont work with other users, not admin

 

Hi diassynthesis,

although the problem is related to the application of the record rules,
your analysis is not correct. Did you try the proposed fix?

The record rules are applied too early in the creation process. In the
case of users, there is a rule on company ids. However, at the moment
that the record rules are applied, the company ids have not yet been
set. The proposed fix moves the application of the record rules to the
end of the creation process, when all fields have been set and the
created resource does not invalidate the record rules anymore.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1021378

Title:
  "create" permission in res.users dont work with other users, not admin

Status in OpenERP Community Backports (Server):
  Fix Released
Status in OpenERP Community Backports (Server) 7.0 series:
  Fix Released
Status in OpenERP Server:
  Fix Committed
Status in Therp Backports:
  Fix Released
Status in Therp Backports server-6.1 series:
  Fix Released

Bug description:
  When you create a new user and give permissions: Administration: "access rights". This group "access rights" has create permission to res.users table.
  Then login with this new user and try to create a new user, it dont work, the message is "Access Error Operation:Prohibited by the rules of access to or held in a document already removed (Operation: create, document type: res.users)"
  The result I expected was create a new user, by using a user different to admin, that has "access rights" permissions.
  The platform is ubuntu
  The Openerp Version is 6.1 rev. 4196

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-server/+bug/1021378/+subscriptions


References