ATK Demo Walkthrough – Lesson 5

From Achievo/ATK Wiki

Jump to: navigation, search

Contents

Intro

In this lesson we take the application we built in Lesson 4 and add user permissions to it, so only certain users can perform certain actions

The Departments Node

We restrict the editing of the department - only users who are logged in and belong to this department can edit a record.

function recordActions($record,&$actions)

The Employees Node

There are some new fields in the employee node in this lesson; the loginname ('employeeid' in this case), and a password. To work with the password we use the atkPasswordAttribute.

The NF_MRA flag is added to the node - this displays select boxes in the list view and allows multiple deletes.

The Profile Node

This is new in this lesson. It uses an atkProfileAttribute to allow us to edit the privileges each profile has.

The Module

We add a menu item for the profile and also restrict which users can see which menu items.

This lesson contains the getNode() function which allows us to define which nodes exist, and what actions each node has - so we can manage permissions.

Personal tools
Navigation