+---------------------+
| Start |
+----------+----------+
|
v
+---------------------+
| Input username & |
| password |
+----------+----------+
|
v
+---------------------+
| Check credentials |
+----------+----------+
|
+------+------+
| |
Yes No
| |
v v
+-------------+ +----------------+
| Check user | | Display error: |
| permissions | | Invalid login |
+------+------+ +-------+--------+
| |
+----+----+ |
| | |
Yes No |
| | |
v v v
+-----------+ +----------------+
| Access | | Display error: |
| granted | | Access denied |
+-----------+ +----------------+
| |
+-------+-------+
|
v
+----+----+
| End |
+---------+This flowchart starts with the user entering their username and password.
First, the system checks if the credentials are correct. If not, it shows an error message 'Invalid login' and ends.
If the credentials are correct, the system then checks if the user has permission to access the requested file.
If the user has permission, access is granted and the process ends.
If the user does not have permission, an 'Access denied' message is shown and the process ends.