Author Topic: Cannot enable Model based Addin on model with security enabled (EA15.2)  (Read 2561 times)

satrman

  • EA User
  • **
  • Posts: 50
  • Karma: +2/-0
    • View Profile
Hi all,

having model with model based addin (java script) and there is no problem to enable it in local EAPX file without security enabled.
However if I enable security and assign group persmission "Configure Model Add-Ins" to User group I am in, I can assign a user group (tried both with/without "Configure Model Add-Ins" permission) and I can set disabled/enabled/optional + load on startup, however it does not load the Addin.
If I later disable "Configure Model Add-Ins" permission from group I am in (should let me turn on addin with "optional" setting at user level) it does not help either.
(Note: my key is to use it at a corporate level (have corporate license) in large MS SQL repository - however the issue is on both - security enabled EAPX and MS SQL as well)
I have figured out, that this setting goes to t_xrefsystem, however cannot move on...
Anyone can help me with this struggle, please?

Thanx in advance
Miloš

satrman

  • EA User
  • **
  • Posts: 50
  • Karma: +2/-0
    • View Profile
Somehow fixed it - recommended steps:
- create security GROUP A with Configure Model Add In
- create security GROUP B (no special rights needed)
- assign yourself to both groups
- in Manage-Addin assign your addin to GROUP B, set "Optional" and leave Load on Startup Blank
- remove yoursel from GROUP A
- in Manage-Addin check Load on startup

This view could be helpfull:

SELECT t_xrefsystem.Type
, t_xrefsystem.Visibility
, t_xrefsystem.Namespace
, t_xrefsystem.Requirement
, t_xrefsystem.[Constraint]
, t_xrefsystem.Behavior
, t_xrefsystem.Partition
, t_xrefsystem.Description
, t_secuser.UserLogin
, t_secgroup.GroupName
, t_xrefsystem.Client
, t_xrefsystem.Supplier
, t_object.Name
, t_xrefsystem.Link
FROM ((t_xrefsystem
LEFT JOIN t_secuser ON t_xrefsystem.Client = t_secuser.UserID)
LEFT JOIN t_secgroup ON t_xrefsystem.Client = t_secgroup.GroupID)
LEFT JOIN t_object ON t_xrefsystem.Supplier = t_object.ea_guid
Where
t_xrefsystem.Type in ('UserSettings', 'GroupSettings')
order by
t_xrefsystem.Supplier
,t_xrefsystem.Type
,t_xrefsystem.Client

shimon

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Hi,
Thanks for posting the solution. I got stuck on the same issue.
I didn't try it yet on the SQL based repository, but on a local file after enabling security, the problem was solved without removing myself from GroupA.
Sincerely,
Shimon